diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-10-14 12:00:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-10-14 12:00:45 +0000 |
commit | 749f5387c19449209615b282ac738032f2a890e7 (patch) | |
tree | a6c04163df233dd5c723660f5a4f6550f70fc038 /lib/inet_pton.c | |
parent | 7553341badc73d7e9cdf6a0dd1f03ae04f766b92 (diff) | |
download | curl-749f5387c19449209615b282ac738032f2a890e7.tar.gz |
Gisle Vanem's IPv6-on-Windows patch applied!
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r-- | lib/inet_pton.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/inet_pton.c b/lib/inet_pton.c index 82eba95bb..601042e1d 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -20,11 +20,6 @@ #ifndef HAVE_INET_PTON -#if defined(WIN32) && !defined(__GNUC__) || defined(__MINGW32__) -#define EAFNOSUPPORT WSAEAFNOSUPPORT -#include <winsock.h> -#else - #ifdef HAVE_SYS_PARAM_H #include <sys/param.h> #endif @@ -40,7 +35,6 @@ #ifdef HAVE_ARPA_INET_H #include <arpa/inet.h> #endif -#endif #include <string.h> #include <errno.h> @@ -52,6 +46,10 @@ #define AF_INET6 AF_MAX+1 /* just to let this compile */ #endif +#ifdef WIN32 +#define EAFNOSUPPORT WSAEAFNOSUPPORT +#endif + /* * WARNING: Don't even consider trying to compile this on a system where * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. |