summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/config.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/config.h b/utils/config.h
index 8f17b16c2..c45b865fe 100644
--- a/utils/config.h
+++ b/utils/config.h
@@ -64,7 +64,9 @@ char *strchrnul(const char *s, int c);
#undef HAVE_INETATON
#undef HAVE_SYS_SELECT
#include <winsock2.h>
+#ifndef EAFNOSUPPORT
#define EAFNOSUPPORT WSAEAFNOSUPPORT
+#endif
int inet_aton(const char *cp, struct in_addr *inp);
#else
#include <netinet/in.h>