network: undef EAFNOSUPPORT before overriding it.
[vlc.git] / src / network / udp.c
index 2890d59..c02da8c 100644 (file)
@@ -39,6 +39,7 @@
 #include <vlc_network.h>
 
 #ifdef _WIN32
+#   undef EAFNOSUPPORT
 #   define EAFNOSUPPORT WSAEAFNOSUPPORT
 #else
 #   include <unistd.h>