From: Wouter Wijngaards Date: Thu, 19 Mar 2015 14:47:42 +0000 (+0000) Subject: fixup compiler warning on OpenBSD. X-Git-Tag: release-1.5.4~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a0b37be65559c4215a8d319c36118525dcaa9e0;p=thirdparty%2Funbound.git fixup compiler warning on OpenBSD. git-svn-id: file:///svn/unbound/trunk@3371 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/services/listen_dnsport.c b/services/listen_dnsport.c index e261e3b1f..79e7ca005 100644 --- a/services/listen_dnsport.c +++ b/services/listen_dnsport.c @@ -113,6 +113,9 @@ create_udp_sock(int family, int socktype, struct sockaddr* addr, #endif #ifndef IPV6_V6ONLY (void)v6only; +#endif +#ifndef IP_TRANSPARENT + (void)transparent; #endif if((s = socket(family, socktype, 0)) == -1) { *inuse = 0; @@ -485,7 +488,10 @@ create_tcp_accept_sock(struct addrinfo *addr, int v6only, int* noproto, int s; #if defined(SO_REUSEADDR) || defined(SO_REUSEPORT) || defined(IPV6_V6ONLY) || defined(IP_TRANSPARENT) int on = 1; -#endif /* SO_REUSEADDR || IPV6_V6ONLY */ +#endif +#ifndef IP_TRANSPARENT + (void)transparent; +#endif verbose_print_addr(addr); *noproto = 0; if((s = socket(addr->ai_family, addr->ai_socktype, 0)) == -1) {