Remove warnings on BSD systems.

git-svn-id: file:///svn/unbound/trunk@3053 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2014-01-24 15:15:37 +00:00
parent 8da91e09ea
commit 79dd0f33e0

View 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) {