summaryrefslogtreecommitdiff
path: root/multimedia/vlc/patches/patch-aa
blob: 0f7a2f82e45bfcaf0a5f675d9c6d8b2faf8fb8fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-aa,v 1.3 2006/04/28 23:16:29 wiz 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" );