* ftp.c:
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: ftp.c,v 1.6 2003/02/04 10:07:40 massiot Exp $
+ * $Id: ftp.c,v 1.7 2003/02/07 23:36:55 marcari Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
*****************************************************************************/
#include <stdlib.h>
#include <sys/types.h>
+#include <sys/time.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
* http.c: HTTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: http.c,v 1.21 2003/02/04 10:07:40 massiot Exp $
+ * $Id: http.c,v 1.22 2003/02/07 23:36:55 marcari Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*****************************************************************************/
#include <stdlib.h>
#include <string.h>
+#include <sys/time.h>
#include <vlc/vlc.h>
#include <vlc/input.h>
* mms.c: MMS access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: mms.c,v 1.17 2003/01/27 16:28:42 fenrir Exp $
+ * $Id: mms.c,v 1.18 2003/02/07 23:36:55 marcari Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
* Preamble
*****************************************************************************/
#include <stdlib.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
* udp.c: raw UDP & RTP access plug-in
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: udp.c,v 1.11 2003/02/04 10:07:40 massiot Exp $
+ * $Id: udp.c,v 1.12 2003/02/07 23:36:55 marcari Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
* Tristan Leteurtre <tooney@via.ecp.fr>
* Preamble
*****************************************************************************/
#include <stdlib.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
* ipv6.c: IPv6 network abstraction layer
*****************************************************************************
* Copyright (C) 2002 VideoLAN
- * $Id: ipv6.c,v 1.7 2002/12/23 16:21:54 massiot Exp $
+ * $Id: ipv6.c,v 1.8 2003/02/07 23:36:55 marcari Exp $
*
* Authors: Alexis Guillard <alexis.guillard@bt.com>
* Christophe Massiot <massiot@via.ecp.fr>
psz_multicast_interface );
/* now convert that interface name to an index */
-#if !defined( WIN32 )
+#if __GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 2
+# if !defined( WIN32 )
p_socket->sin6_scope_id = if_nametoindex(psz_multicast_interface);
-#else
+# else
/* FIXME: for now we always use the default interface */
p_socket->sin6_scope_id = 0;
-#endif
+# endif
msg_Warn( p_this, " = #%i", p_socket->sin6_scope_id );
+#endif
}
psz_address[strlen(psz_address) - 1] = '\0' ;
}
/* Join the multicast group if the socket is a multicast address */
+#if __GLIBC__ > 2 || __GLIBC__ == 2 && __GLIBC_MINOR__ >= 2
if( IN6_IS_ADDR_MULTICAST(&sock.sin6_addr) )
{
struct ipv6_mreq imr;
if( res == -1 )
{
msg_Err( p_this, "setsockopt JOIN_GROUP failed" );
- }
+ }
}
+#else
+ msg_Warn( p_this, "setsockopt JOIN_GROUP not supported with glibc < 2.2" );
+#endif
if( *psz_server_addr )