#define net_OpenDgram( a, b, c, d, e, g, h ) __net_OpenDgram(VLC_OBJECT(a), b, c, d, e, g, h)
VLC_EXPORT( int, __net_OpenDgram, ( vlc_object_t *p_this, const char *psz_bind, int i_bind, const char *psz_server, int i_server, int family, int proto ) );
-VLC_EXPORT( void, net_Close, ( int fd ) );
VLC_EXPORT( void, net_ListenClose, ( int *fd ) );
VLC_EXPORT( int, net_SetDSCP, ( int fd, uint8_t dscp ) );
# define SHUT_RDWR SD_BOTH
# define net_Close( fd ) closesocket ((SOCKET)fd)
#else
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
# define net_Close( fd ) (void)close (fd)
#endif
# ifndef EAI_MEMORY
# define EAI_MEMORY -10
# endif
+#ifndef EAI_OVERFLOW
+# define EAI_OVERFLOW -11
+#endif
# ifndef EAI_SYSTEM
-# define EAI_SYSTEM -11
+# define EAI_SYSTEM -12
# endif