diff options
author | manu <manu> | 2004-07-27 17:18:41 +0000 |
---|---|---|
committer | manu <manu> | 2004-07-27 17:18:41 +0000 |
commit | 6e342352403d3106a2f2e45ea56c1eb11828f235 (patch) | |
tree | 2f07c19f33680a805821c23349b25b2a19a5fb53 /multimedia/vlc/patches | |
parent | fa18a608704f2d14292ea0560141f097de2af0f9 (diff) | |
download | pkgsrc-6e342352403d3106a2f2e45ea56c1eb11828f235.tar.gz |
Bugfix: setsockopt IP_MULTICAST_TTL takes an an unsigned char, not an int.
Diffstat (limited to 'multimedia/vlc/patches')
-rw-r--r-- | multimedia/vlc/patches/patch-aa | 17 |
1 files changed, 17 insertions, 0 deletions
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" ); + } + |