From e612f73374d25ba290e3fe27758bb6084851450f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 8 Oct 2003 13:07:08 +0000 Subject: [PATCH] include file fixes --- lib/inet_pton.c | 10 ++++++++++ lib/inet_pton.h | 3 +++ 2 files changed, 13 insertions(+) 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 +#endif +#ifdef HAVE_SYS_TYPES_H #include +#endif +#ifdef HAVE_SYS_SOCKET_H #include +#endif +#ifdef HAVE_NETINET_IN_H #include +#endif +#ifdef HAVE_ARPA_INET_H #include +#endif #include #include 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 +#endif #else int Curl_inet_pton(int, const char *, void *); #endif