]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Remove warnings on BSD systems.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 24 Jan 2014 15:15:37 +0000 (15:15 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 24 Jan 2014 15:15:37 +0000 (15:15 +0000)
git-svn-id: file:///svn/unbound/trunk@3053 be551aaa-1e26-0410-a405-d3ace91eadb9

services/listen_dnsport.c

index 63521e3e808b4a1e67ab9c50a0678f5071e502c0..2c285bba144c00870909a6c5d7ae51f04bd3bbdf 100644 (file)
@@ -164,6 +164,8 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr,
                        *inuse = 0;
                        return -1;
                }
+#else
+               (void)reuseport;
 #endif /* defined(__linux__) && defined(SO_REUSEPORT) */
        }
        if(rcv) {
@@ -483,6 +485,8 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto,
                close(s);
                return -1;
        }
+#else
+       (void)reuseport;
 #endif /* defined(__linux__) && defined(SO_REUSEPORT) */
 #if defined(IPV6_V6ONLY)
        if(addr->ai_family == AF_INET6 && v6only) {