network: undef EAFNOSUPPORT before overriding it.
[vlc.git] / compat / inet_pton.c
index f5f5f09..fb825c2 100644 (file)
@@ -30,6 +30,7 @@
 # include <sys/socket.h>
 #else
 # include <winsock2.h>
+# undef EAFNOSUPPORT
 # define EAFNOSUPPORT WSAEAFNOSUPPORT
 #endif