From 6e342352403d3106a2f2e45ea56c1eb11828f235 Mon Sep 17 00:00:00 2001 From: manu Date: Tue, 27 Jul 2004 17:18:41 +0000 Subject: Bugfix: setsockopt IP_MULTICAST_TTL takes an an unsigned char, not an int. --- multimedia/vlc/patches/patch-aa | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 multimedia/vlc/patches/patch-aa (limited to 'multimedia/vlc/patches') diff --git a/multimedia/vlc/patches/patch-aa b/multimedia/vlc/patches/patch-aa new file mode 100644 index 00000000000..816c5a55dc9 --- /dev/null +++ b/multimedia/vlc/patches/patch-aa @@ -0,0 +1,17 @@ +--- modules/misc/network/ipv4.c.orig Tue Jul 27 19:01:35 2004 ++++ modules/misc/network/ipv4.c Tue Jul 27 19:02:52 2004 +@@ -405,9 +405,13 @@ + #if !defined( UNDER_CE ) && !defined( SYS_BEOS ) + if( IN_MULTICAST( ntohl(inet_addr(psz_server_addr) ) ) ) + { + /* set the time-to-live */ ++#ifdef __NetBSD__ ++ unsigned char ttl = p_socket->i_ttl; ++#else + int ttl = p_socket->i_ttl; ++#endif + if( ttl < 1 ) + { + ttl = config_GetInt( p_this, "ttl" ); + } + -- cgit v1.2.3