From 26e6fb0efe461d55e72da637b1b921b77f28af73 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Sat, 24 Apr 2010 13:07:50 +0200 Subject: lib/replace/wscript: make sure IPV6_V6ONLY is available for IPv6 support We really on IPV6_V6ONLY being supported. metze --- lib/replace/wscript | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib') diff --git a/lib/replace/wscript b/lib/replace/wscript index 9f51431e8c..cfb4181066 100644 --- a/lib/replace/wscript +++ b/lib/replace/wscript @@ -129,6 +129,14 @@ def configure(conf): const char *es = gai_strerror(ret); } freeaddrinfo(ai); + { + int val = 1; + #ifdef HAVE_LINUX_IPV6_V6ONLY_26 + #define IPV6_V6ONLY 26 + #endif + ret = setsockopt(s, IPPROTO_IPV6, IPV6_V6ONLY, + (const void *)&val, sizeof(val)); + } ''', define='HAVE_IPV6', lib='nsl socket', -- cgit