[vlc-devel] [PATCH 07/12] network: undef EAFNOSUPPORT before overriding it.

Felix Abecassis felix.abecassis at gmail.com
Fri Nov 29 17:41:32 CET 2013


---
 compat/inet_pton.c |    1 +
 src/network/udp.c  |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/compat/inet_pton.c b/compat/inet_pton.c
index f5f5f09..fb825c2 100644
--- a/compat/inet_pton.c
+++ b/compat/inet_pton.c
@@ -30,6 +30,7 @@
 # include <sys/socket.h>
 #else
 # include <winsock2.h>
+# undef EAFNOSUPPORT
 # define EAFNOSUPPORT WSAEAFNOSUPPORT
 #endif
 
diff --git a/src/network/udp.c b/src/network/udp.c
index 2890d59..c02da8c 100644
--- a/src/network/udp.c
+++ b/src/network/udp.c
@@ -39,6 +39,7 @@
 #include <vlc_network.h>
 
 #ifdef _WIN32
+#   undef EAFNOSUPPORT
 #   define EAFNOSUPPORT WSAEAFNOSUPPORT
 #else
 #   include <unistd.h>
-- 
1.7.9




More information about the vlc-devel mailing list