summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-24 13:07:50 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-24 20:30:24 +0200
commit26e6fb0efe461d55e72da637b1b921b77f28af73 (patch)
tree6556be597972b027816ca53ee75fb559d7f96d30 /lib
parent41cd6f992829c45c890f5daf78eb3019633f3620 (diff)
downloadsamba-26e6fb0efe461d55e72da637b1b921b77f28af73.tar.gz
lib/replace/wscript: make sure IPV6_V6ONLY is available for IPv6 support
We really on IPV6_V6ONLY being supported. metze
Diffstat (limited to 'lib')
-rw-r--r--lib/replace/wscript8
1 files changed, 8 insertions, 0 deletions
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',