summaryrefslogtreecommitdiff
path: root/multimedia/vlc07/patches/patch-aa
blob: 4a56643cd53ccecee56c145452c0d1b1c379d0a2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-aa,v 1.1.1.1 2006/09/26 07:19:41 martti Exp $

--- modules/misc/network/ipv4.c.orig	2004-05-16 17:44:52.000000000 +0000
+++ modules/misc/network/ipv4.c
@@ -406,7 +406,11 @@ static int OpenUDP( vlc_object_t * p_thi
         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" );