From 8eed253c98c9b95cd8eb635045cfe0b673bbdc02 Mon Sep 17 00:00:00 2001 From: Mike Brady Date: Wed, 30 Dec 2015 19:33:56 +0000 Subject: [PATCH] Comment out the IPv6 public stuff -- OpenWrt doesnt like it --- rtp.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rtp.c b/rtp.c index 328b9f41..baf95124 100644 --- a/rtp.c +++ b/rtp.c @@ -41,10 +41,12 @@ #include "player.h" #include "rtp.h" +/* +// this does not compile properly with OpenWrt Barrier Breaker... #if defined(__linux__) #include #endif - +*/ typedef struct { uint32_t seconds; uint32_t fraction; @@ -529,6 +531,8 @@ static int bind_port(SOCKADDR *remote, int *sock) { *sock = socket(remote->SAFAMILY, SOCK_DGRAM, IPPROTO_UDP); +/* + // this doesn't compile properly with OpenWrt Barrier Breaker. #if defined(__linux__) #ifdef AF_INET6 // now, if we are on IPv6, prefer a public ipv6 address @@ -540,7 +544,7 @@ static int bind_port(SOCKADDR *remote, int *sock) { } #endif #endif - +*/ ret = bind(*sock, info->ai_addr, info->ai_addrlen); freeaddrinfo(info);