[vlc-commits] network: undef EAFNOSUPPORT before overriding it.

Felix Abecassis git at videolan.org
Sat Nov 30 14:30:47 CET 2013


vlc | branch: master | Felix Abecassis <felix.abecassis at gmail.com> | Fri Nov 29 17:41:32 2013 +0100| [a580223d2c4fb175d5ea2741fd611b8483f9d7fe] | committer: Rémi Denis-Courmont

network: undef EAFNOSUPPORT before overriding it.

Signed-off-by: Rémi Denis-Courmont <remi at remlab.net>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a580223d2c4fb175d5ea2741fd611b8483f9d7fe
---

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

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>



More information about the vlc-commits mailing list