mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-27 18:20:02 -05:00
Remove warnings on BSD systems.
git-svn-id: file:///svn/unbound/trunk@3053 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
8da91e09ea
commit
79dd0f33e0
1 changed files with 4 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue