summaryrefslogtreecommitdiff
path: root/lib/replace/system
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2010-04-24 19:02:22 +0200
committerStefan Metzmacher <metze@samba.org>2010-04-24 20:30:17 +0200
commite06cf3950252a46486aa046a4552ed6ebff175b3 (patch)
tree6f18cc913dc1a27c31fb753e00f8be8f209d6e42 /lib/replace/system
parent051535f196305f5ded4d786a2db977b0626ee0b9 (diff)
downloadsamba-e06cf3950252a46486aa046a4552ed6ebff175b3.tar.gz
samba-e06cf3950252a46486aa046a4552ed6ebff175b3.tar.bz2
samba-e06cf3950252a46486aa046a4552ed6ebff175b3.zip
lib/replace: add replacement for IPV6_V6ONLY on linux systems with broken headers
This is needed on SLES8. metze
Diffstat (limited to 'lib/replace/system')
-rw-r--r--lib/replace/system/network.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/replace/system/network.h b/lib/replace/system/network.h
index 1f510350bd..93d533c9b9 100644
--- a/lib/replace/system/network.h
+++ b/lib/replace/system/network.h
@@ -360,6 +360,13 @@ struct addrinfo {
#define ifr_netmask ifr_addr
#endif
+/* Some old Linux systems have broken header files */
+#ifdef HAVE_IPV6
+#ifdef HAVE_LINUX_IPV6_V6ONLY_26
+#define IPV6_V6ONLY 26
+#endif /* HAVE_LINUX_IPV6_V6ONLY_26 */
+#endif /* HAVE_IPV6 */
+
#ifdef SOCKET_WRAPPER
#ifndef SOCKET_WRAPPER_DISABLE
#ifndef SOCKET_WRAPPER_NOT_REPLACE