--- 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* | *-kfreebsd*-gnu) + *-linux* | *-kfreebsd*-gnu | *-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* | *-kfreebsd*-gnu) + *-linux* | *-kfreebsd*-gnu | *-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