aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_pton.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r--lib/inet_pton.c10
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.