Commit f093d59d authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Undo braindead [11640]

parent a204ad1c
...@@ -359,16 +359,16 @@ VLC_EXPORT( int, __net_vaPrintf, ( vlc_object_t *p_this, int fd, v_socket_t *, c ...@@ -359,16 +359,16 @@ VLC_EXPORT( int, __net_vaPrintf, ( vlc_object_t *p_this, int fd, v_socket_t *, c
*****************************************************************************/ *****************************************************************************/
#if defined (SHUT_WR) #if defined (SHUT_WR)
/* the standard way */ /* the standard way */
# define net_StopSend( fd ) shutdown( fd, SHUT_WR ) # define net_StopSend( fd ) (void)shutdown( fd, SHUT_WR )
# define net_StopRecv( fd ) shutdown( fd, SHUT_RD ) # define net_StopRecv( fd ) (void)shutdown( fd, SHUT_RD )
#elif defined (SD_SEND) #elif defined (SD_SEND)
/* the Microsoft seemingly-purposedly-different-for-the-sake-of-it way */ /* the Microsoft seemingly-purposedly-different-for-the-sake-of-it way */
# define net_StopSend( fd ) shutdown( fd, SD_SEND ) # define net_StopSend( fd ) (void)shutdown( fd, SD_SEND )
# define net_StopRecv( fd ) shutdown( fd, SD_RECEIVE ) # define net_StopRecv( fd ) (void)shutdown( fd, SD_RECEIVE )
#else #else
# warning FIXME: implement shutdown on your platform! # warning FIXME: implement shutdown on your platform!
# define net_StopSend( fd ) return(-1) # define net_StopSend( fd ) (void)0
# define net_StopRecv( fd ) return(-1) # define net_StopRecv( fd ) (void)0
#endif #endif
#define net_CheckIP(a,b,c,d) __net_CheckIP(VLC_OBJECT(a),b,c,d) #define net_CheckIP(a,b,c,d) __net_CheckIP(VLC_OBJECT(a),b,c,d)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment