summaryrefslogtreecommitdiffstats
path: root/debian/patches/0001-non-linux.diff
blob: 9a5c95f7ed712c59aea6e7c5368e25643c91da23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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