]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
2463. [port] linux: POSIX doesn't include the IPv6 Advanced Socket
authorMark Andrews <marka@isc.org>
Wed, 15 Oct 2008 00:12:03 +0000 (00:12 +0000)
committerMark Andrews <marka@isc.org>
Wed, 15 Oct 2008 00:12:03 +0000 (00:12 +0000)
                        API and glibc hides parts of the IPv6 Advanced Socket
                        API as a result.  This is stupid as it breaks how the
                        two halves (Basic and Advanced) of the IPv6 Socket API                          were designed to be used but we have to live with it.
                        Define _GNU_SOURCE to pull in the IPv6 Advanced Socket
                        API. [RT #18388]

CHANGES
configure.in

diff --git a/CHANGES b/CHANGES
index f0d7b255663d90e220e57997ca1b41a6ebcc56b8..14f56f3e9c6396c6198a945a9b5fa00aaa9a088d 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,10 @@
+2463.   [port]          linux: POSIX doesn't include the IPv6 Advanced Socket
+                       API and glibc hides parts of the IPv6 Advanced Socket
+                       API as a result.  This is stupid as it breaks how the
+                       two halves (Basic and Advanced) of the IPv6 Socket API                          were designed to be used but we have to live with it.
+                       Define _GNU_SOURCE to pull in the IPv6 Advanced Socket
+                       API. [RT #18388]
+
 2462.  [doc]           Document -m (enable memory usage debugging)
                        option for dig. [RT #18757]
 
index f1899f709a8cac0f0c697629f945d4e90b7af105..0e766c16d755fcdba7b2f2eb7a083e8f4a6e5cff 100644 (file)
@@ -18,7 +18,7 @@ AC_DIVERT_PUSH(1)dnl
 esyscmd([sed "s/^/# /" COPYRIGHT])dnl
 AC_DIVERT_POP()dnl
 
-AC_REVISION($Revision: 1.294.2.23.2.90 $)
+AC_REVISION($Revision: 1.294.2.23.2.91 $)
 
 AC_INIT(lib/dns/name.c)
 AC_PREREQ(2.13)
@@ -224,6 +224,15 @@ case "$host" in
                STD_CDEFINES="$STD_CDEFINES -D_XPG4_2 -D__EXTENSIONS__"
                CPPFLAGS="$CPPFLAGS -D_XPG4_2 -D__EXTENSIONS__"
                ;;
+       # POSIX doesn't include the IPv6 Advanced Socket API and glibc hides
+       # parts of the IPv6 Advanced Socket API as a result.  This is stupid
+       # as it breaks how the two halves (Basic and Advanced) of the IPv6
+       # Socket API were designed to be used but we have to live with it.
+       # Define _GNU_SOURCE to pull in the IPv6 Advanced Socket API.
+       *-linux*)
+               STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
+               CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
+               ;;
 esac
 
 AC_HEADER_STDC