[vlc-devel] PATCH: BeOS Build Bustage (UDP) + new icon
Cian Duffy
myob87 at gmail.com
Mon Dec 5 15:49:46 CET 2005
The most recent changes to src/network/udp.c break the build on BeOS R5,
which has minimal setsockopt() options. This patch comments out the
offending code, and appears to still work - although UDP support is
extremely poor on BeOS R5 anyway.
In addition, the attached binary (sorry, has to be) .rsrc file contains the
new icon for BeOS builds.
Cian
Index: src/network/udp.c
===================================================================
--- src/network/udp.c (revision 13561)
+++ src/network/udp.c (working copy)
@@ -64,6 +64,7 @@
extern int net_Socket( vlc_object_t *p_this, int i_family, int i_socktype,
int i_protocol );
+#if !defined( SYS_BEOS )
static void net_SetMcastHopLimit( int fd, int family, int hlim )
{
@@ -101,6 +102,7 @@
}
}
+#endif
/*****************************************************************************
* __net_ConnectUDP:
@@ -167,10 +169,11 @@
setsockopt( fd, SOL_SOCKET, SO_SNDBUF, (void *)&i_val,
sizeof( i_val ) );
}
-#endif
net_SetMcastHopLimit( fd, ptr->ai_family, i_hlim );
+#endif
+
if( connect( fd, ptr->ai_addr, ptr->ai_addrlen ) == 0 )
{
/* success */
--
-------------------------
"We're busy running out of time"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20051205/29b87c49/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vlc_beos.rsrc
Type: application/octet-stream
Size: 4259 bytes
Desc: not available
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20051205/29b87c49/attachment.obj>
More information about the vlc-devel
mailing list