network: undef EAFNOSUPPORT before overriding it.
authorFelix Abecassis <felix.abecassis@gmail.com>
Fri, 29 Nov 2013 16:41:32 +0000 (17:41 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 30 Nov 2013 13:27:40 +0000 (15:27 +0200)
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
compat/inet_pton.c
src/network/udp.c

index f5f5f09..fb825c2 100644 (file)
@@ -30,6 +30,7 @@
 # include <sys/socket.h>
 #else
 # include <winsock2.h>
+# undef EAFNOSUPPORT
 # define EAFNOSUPPORT WSAEAFNOSUPPORT
 #endif
 
index 2890d59..c02da8c 100644 (file)
@@ -39,6 +39,7 @@
 #include <vlc_network.h>
 
 #ifdef _WIN32
+#   undef EAFNOSUPPORT
 #   define EAFNOSUPPORT WSAEAFNOSUPPORT
 #else
 #   include <unistd.h>