summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-non-linux.diff
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0001-non-linux.diff')
-rw-r--r--debian/patches/0001-non-linux.diff42
1 files changed, 42 insertions, 0 deletions
diff --git a/debian/patches/0001-non-linux.diff b/debian/patches/0001-non-linux.diff
new file mode 100644
index 0000000..9a5c95f
--- /dev/null
+++ b/debian/patches/0001-non-linux.diff
@@ -0,0 +1,42 @@
+From: Debian DNS Packaging <pkg-dns-devel@lists.alioth.debian.org>
+Date: Fri, 24 Nov 2017 16:26:53 +0000
+Subject: _non-linux
+
+ FTBFS on kfreebsd, hurd
+
+ Addresses-Debian-Bug: 741285, 746540
+ Signed-off-by: LaMont Jones <lamont@debian.org>
+---
+ configure.in | 5 ++---
+ 1 file changed, 2 insertions(+), 3 deletions(-)
+
+diff --git a/configure.in b/configure.in
+index 9aa7e2d..bf028fe 100644
+--- a/configure.in
++++ b/configure.in
+@@ -462,7 +462,7 @@ case "$host" in
+ # 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"
+ ;;
+@@ -1327,7 +1327,7 @@ then
+ # LinuxThreads requires some changes to the way we
+ # deal with signals.
+ #
+- *-linux*)
++ *-linux*|*-kfreebsd*-gnu)
+ AC_DEFINE(HAVE_LINUXTHREADS)
+ ;;
+ #
+@@ -2780,7 +2780,6 @@ case "$host" in
+ ;;
+ *)
+ AC_CHECK_LIB(socket, socket)
+- AC_CHECK_LIB(nsl, inet_addr)
+ ;;
+ esac
+