]> git.sesse.net Git - vlc/blobdiff - include/vlc_network.h
* Untested YV12/I420 -> * blending. Works exactly like YUVA blending except when...
[vlc] / include / vlc_network.h
index 2dbc0377f94fcc5387d47d0004edd6af766b80d9..53d04d989f89d37a019ed706aed4148c19b7e9af 100644 (file)
@@ -109,7 +109,6 @@ static inline int net_ListenUDP1 (vlc_object_t *obj, const char *host, int port)
 #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 ) );
@@ -183,6 +182,9 @@ int poll (struct pollfd *fds, unsigned nfds, int timeout);
 # 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
 
@@ -219,8 +221,11 @@ int poll (struct pollfd *fds, unsigned nfds, int timeout);
 # 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