diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-10-08 13:07:08 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-10-08 13:07:08 +0000 |
commit | e612f73374d25ba290e3fe27758bb6084851450f (patch) | |
tree | 3887778d75c66d1a33defb5097a13d21f94ae4a4 | |
parent | ff5b6ff5288d29dee7a8e8d24d0948451350cb50 (diff) |
include file fixes
-rw-r--r-- | lib/inet_pton.c | 10 | ||||
-rw-r--r-- | lib/inet_pton.h | 3 |
2 files changed, 13 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> diff --git a/lib/inet_pton.h b/lib/inet_pton.h index d758e06d2..019cd3269 100644 --- a/lib/inet_pton.h +++ b/lib/inet_pton.h @@ -27,6 +27,9 @@ #ifdef HAVE_INET_PTON #define Curl_inet_pton(x,y,z) inet_pton(x,y,z) +#ifdef HAVE_ARPA_INET_H +#include <arpa/inet.h> +#endif #else int Curl_inet_pton(int, const char *, void *); #endif |