diff options
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r-- | lib/inet_pton.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c index 0945bdcb4..6cd6bcac5 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -20,11 +20,21 @@ #ifndef HAVE_INET_PTON +#ifdef HAVE_SYS_PARAM_H #include <sys/param.h> +#endif +#ifdef HAVE_SYS_TYPES_H #include <sys/types.h> +#endif +#ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> +#endif +#ifdef HAVE_NETINET_IN_H #include <netinet/in.h> +#endif +#ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> +#endif #include <string.h> #include <errno.h> |