[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#658201: bind9/kfreebsd needs to set -D_GNU_SOURCE, patch



tag 658201 +patch
stop

Hi!

>From configure.in

        # 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.

Unfortunately this is only done for linux right now. Paatch below should
set it for other GLIBC targets as well (kfreebsd, hurd). Tested on
kfreebsd-i386 to indeed enable bind9 to answer over IPv6

Regards

    Christoph

diff -u bind9-9.8.1.dfsg.P1/configure bind9-9.8.1.dfsg.P1/configure
--- bind9-9.8.1.dfsg.P1/configure
+++ bind9-9.8.1.dfsg.P1/configure
@@ -12695,7 +12695,7 @@
 	# 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*)
+	*-linux*|*-gnu*)
 		STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
 		CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 		;;
diff -u bind9-9.8.1.dfsg.P1/configure.in bind9-9.8.1.dfsg.P1/configure.in
--- bind9-9.8.1.dfsg.P1/configure.in
+++ bind9-9.8.1.dfsg.P1/configure.in
@@ -263,7 +263,7 @@
 	# 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*)
+	*-linux*|*-gnu*)
 		STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
 		CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
 		;;

-- 
9FED 5C6C E206 B70A 5857  70CA 9655 22B9 D49A E731
Debian Developer | Lisp Hacker | CaCert Assurer



Reply to: