Source: bind9 Version: 1:9.8.1.dfsg-1 Severity: normal Tags: patch Hello,
This fixes IPv6 support on hurd-i386: _GNU_SOURCE is also needed, since it's glibc like on Linux. Also, EPFNOSUPPORT is returned when ipv6 is not enabled on the system. Samuel -- System Information: Debian Release: wheezy/sid APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable'), (1, 'experimental') Architecture: hurd-i386 (i686-AT386) Kernel: GNU-Mach 1.3.99/Hurd-0.3 Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
--- configure.in.orig 2011-12-04 23:21:32.000000000 +0100 +++ configure.in 2011-12-04 23:21:35.000000000 +0100 @@ -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" ;; --- configure.orig 2011-12-04 23:25:28.000000000 +0100 +++ configure 2011-12-04 23:25:32.000000000 +0100 @@ -11807,7 +11807,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" ;; --- ./lib/isc/unix/net.c.orig 2011-12-04 23:44:51.000000000 +0100 +++ ./lib/isc/unix/net.c 2011-12-04 23:44:59.000000000 +0100 @@ -130,6 +130,9 @@ #ifdef EAFNOSUPPORT case EAFNOSUPPORT: #endif +#ifdef EPFNOSUPPORT + case EPFNOSUPPORT: +#endif #ifdef EPROTONOSUPPORT case EPROTONOSUPPORT: #endif