diff options
Diffstat (limited to 'plugins/common.h')
| -rw-r--r-- | plugins/common.h | 31 |
1 files changed, 4 insertions, 27 deletions
diff --git a/plugins/common.h b/plugins/common.h index b3357431..69cd8006 100644 --- a/plugins/common.h +++ b/plugins/common.h | |||
| @@ -103,18 +103,11 @@ | |||
| 103 | #include <signal.h> | 103 | #include <signal.h> |
| 104 | #endif | 104 | #endif |
| 105 | 105 | ||
| 106 | /* GNU Libraries */ | ||
| 106 | #include <getopt.h> | 107 | #include <getopt.h> |
| 107 | #include <ctype.h> | 108 | #include "vasprintf.h" |
| 108 | 109 | #include "snprintf.h" | |
| 109 | #ifdef HAVE_LWRES_NETDB_H | 110 | #include "vsnprintf.h" |
| 110 | #include <lwres/netdb.h> | ||
| 111 | #else | ||
| 112 | # if !HAVE_GETADDRINFO | ||
| 113 | # include "getaddrinfo.h" | ||
| 114 | # else | ||
| 115 | # include <netdb.h> | ||
| 116 | # endif | ||
| 117 | #endif | ||
| 118 | 111 | ||
| 119 | #ifdef HAVE_LOCALE_H | 112 | #ifdef HAVE_LOCALE_H |
| 120 | #include <locale.h> | 113 | #include <locale.h> |
| @@ -138,22 +131,6 @@ | |||
| 138 | # define strtoul(a,b,c) (unsigned long)atol((a)) | 131 | # define strtoul(a,b,c) (unsigned long)atol((a)) |
| 139 | #endif | 132 | #endif |
| 140 | 133 | ||
| 141 | #ifndef HAVE_ASPRINTF | ||
| 142 | int asprintf(char **strp, const char *fmt, ...); | ||
| 143 | #endif | ||
| 144 | |||
| 145 | #ifndef HAVE_VASPRINTF | ||
| 146 | /* int vasprintf(char **strp, const char *fmt, va_list ap); */ | ||
| 147 | #endif | ||
| 148 | |||
| 149 | #ifndef HAVE_SNPRINTF | ||
| 150 | int snprintf(char *str, size_t size, const char *format, ...); | ||
| 151 | #endif | ||
| 152 | |||
| 153 | #ifndef HAVE_VSNPRINTF | ||
| 154 | int vsnprintf(char *str, size_t size, const char *format, va_list ap); | ||
| 155 | #endif | ||
| 156 | |||
| 157 | /* SSL implementations */ | 134 | /* SSL implementations */ |
| 158 | #ifdef HAVE_GNUTLS_OPENSSL_H | 135 | #ifdef HAVE_GNUTLS_OPENSSL_H |
| 159 | # include <gnutls/openssl.h> | 136 | # include <gnutls/openssl.h> |
