]> git.sesse.net Git - vlc/commitdiff
Win32: we need gai_strerrorA and not gai_strerrorW
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 15 Jan 2013 15:59:52 +0000 (16:59 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 15 Jan 2013 15:59:52 +0000 (16:59 +0100)
include/vlc_network.h

index b5dc66ef2b0c1b421413fbe2115419df5b1ef1f0..699e8af039142eefe0523870c8c23130b0c7312a 100644 (file)
@@ -226,6 +226,11 @@ VLC_API ssize_t net_vaPrintf( vlc_object_t *p_this, int fd, const v_socket_t *,
 # define AI_IDN 0 /* GNU/libc extension */
 #endif
 
+#ifdef WIN32
+# undef gai_strerror
+# define gai_strerror gai_strerrorA
+#endif
+
 #ifdef __OS2__
 # ifndef NI_NUMERICHOST
 #  define NI_NUMERICHOST 0x01