From 61ce99795c2b0a7c426f02795fd478ca84d7fa0a Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Fri, 26 Aug 2011 01:26:21 +0100 Subject: Fix compilation of sockopt.c when no IP_MINTTL or IPV6_MINHOPCOUNT. --- lib/sockopt.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/sockopt.c') diff --git a/lib/sockopt.c b/lib/sockopt.c index 083cafc2..5aed83bc 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -266,10 +266,11 @@ setsockopt_minttl (int sock_fd, int ttl) { #ifdef IP_MINTTL have_ip_minttl = true, + ip_minttl = IP_MINTTL #else have_ip_minttl = false, + ip_minttl = 0 #endif - ip_minttl = IP_MINTTL + 0 } ; #ifdef HAVE_IPV6 @@ -286,10 +287,11 @@ setsockopt_minttl (int sock_fd, int ttl) { # ifdef IPV6_MINHOPCOUNT have_ipv6_minhopcount = true, + ipv6_minhopcount = IPV6_MINHOPCOUNT # else have_ipv6_minhopcount = false, + ipv6_minhopcount = IPV6_MINHOPCOUNT # endif - ipv6_minhopcount = IPV6_MINHOPCOUNT + 0 } ; #endif /* HAVE_IPV6 */ -- cgit v1.2.3 From 280a6b4c5c3a35d53e3fc290ab2dcbea51d42dec Mon Sep 17 00:00:00 2001 From: Chris Hall Date: Fri, 26 Aug 2011 09:00:03 +0100 Subject: Fix compilation of sockopt.c when no IP_MINTTL or IPV6_MINHOPCOUNT (II) --- lib/sockopt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sockopt.c') diff --git a/lib/sockopt.c b/lib/sockopt.c index 5aed83bc..8dfd0f16 100644 --- a/lib/sockopt.c +++ b/lib/sockopt.c @@ -290,7 +290,7 @@ setsockopt_minttl (int sock_fd, int ttl) ipv6_minhopcount = IPV6_MINHOPCOUNT # else have_ipv6_minhopcount = false, - ipv6_minhopcount = IPV6_MINHOPCOUNT + ipv6_minhopcount = 0 # endif } ; #endif /* HAVE_IPV6 */ -- cgit v1.2.3