changeset 1671:f695f8fc4a63 libavformat

The long awaited BeOS cleanup, phase 1.1: removed useless ifdef, changed check for net_server to IP_MULTICAST_TTL.
author mmu_man
date Thu, 18 Jan 2007 17:48:21 +0000
parents 92afee454599
children 818eafa8fc95
files udp.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/udp.c	Thu Jan 18 17:22:30 2007 +0000
+++ b/udp.c	Thu Jan 18 17:48:21 2007 +0000
@@ -359,7 +359,7 @@
     getsockname(udp_fd, (struct sockaddr *)&my_addr1, &len);
     s->local_port = ntohs(my_addr1.sin_port);
 
-#ifndef CONFIG_BEOS_NETSERVER
+#ifdef IP_MULTICAST_TTL
     if (s->is_multicast) {
         if (h->flags & URL_WRONLY) {
             /* output */
@@ -387,7 +387,6 @@
     udp_fd = udp_ipv6_set_local(h);
     if (udp_fd < 0)
         goto fail;
-#ifndef CONFIG_BEOS_NETSERVER
     if (s->is_multicast) {
         if (h->flags & URL_WRONLY) {
             if (udp_ipv6_set_multicast_ttl(udp_fd, s->ttl, (struct sockaddr *)&s->dest_addr) < 0)
@@ -398,7 +397,6 @@
         }
     }
 #endif
-#endif
 
     if (is_output) {
         /* limit the tx buf size to limit latency */