]> git.sesse.net Git - vlc/commitdiff
Don't put Linux-specific defines in the wild.
authorRémi Denis-Courmont <rem@videolan.org>
Wed, 18 Oct 2006 14:32:07 +0000 (14:32 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Wed, 18 Oct 2006 14:32:07 +0000 (14:32 +0000)
This hides bugs on all other OSes (incl. Windows).
Better update your glibc instead.

modules/misc/network/ipv4.c

index cf8477feee58c5eb682262c2fe8e2a5d62c7b5cd..58c0641663d7e385b42f592bbcdc9b81fa65788c 100644 (file)
@@ -169,18 +169,6 @@ static int OpenUDP( vlc_object_t * p_this )
 # define strerror( x ) winsock_strerror( strerror_buf )
 #endif
 
-    /* If IP_ADD_SOURCE_MEMBERSHIP is not defined in the headers
-       (because it's not in glibc for example), we have to define the
-       headers required for IGMPv3 here */
-#ifndef IP_ADD_SOURCE_MEMBERSHIP
-    #define IP_ADD_SOURCE_MEMBERSHIP  39
-    struct ip_mreq_source {
-        struct in_addr  imr_multiaddr;
-        struct in_addr  imr_interface;
-        struct in_addr  imr_sourceaddr;
-     };
-#endif
-
     p_socket->i_handle = -1;
 
     /* Open a SOCK_DGRAM (UDP) socket, in the AF_INET domain, automatic (0)