Fix patch to use case + two cats instead of a single cat + preprocessor

usage, it is ignored by autoconf.
This commit is contained in:
joerg 2006-01-19 18:52:59 +00:00
parent 85a893eb5b
commit 24ef3147b5
2 changed files with 18 additions and 10 deletions

View file

@ -1,7 +1,7 @@
$NetBSD: distinfo,v 1.10 2006/01/12 23:37:31 joerg Exp $ $NetBSD: distinfo,v 1.11 2006/01/19 18:52:59 joerg Exp $
SHA1 (dante-1.1.17.tar.gz) = 25d4dd85de93e65e519d498085c12eee597a5a83 SHA1 (dante-1.1.17.tar.gz) = 25d4dd85de93e65e519d498085c12eee597a5a83
RMD160 (dante-1.1.17.tar.gz) = ab8f37dd5d141d35258916eecfe9e8d0393dc207 RMD160 (dante-1.1.17.tar.gz) = ab8f37dd5d141d35258916eecfe9e8d0393dc207
Size (dante-1.1.17.tar.gz) = 845155 bytes Size (dante-1.1.17.tar.gz) = 845155 bytes
SHA1 (patch-aa) = 856884522529122afe037fff610ce89a978d2a2b SHA1 (patch-aa) = 856884522529122afe037fff610ce89a978d2a2b
SHA1 (patch-ab) = 5958c6bca36b85e9f1bdf1388c86844bad6b92a3 SHA1 (patch-ab) = 586825b1da2c73c382f27d299f795a336be32a86

View file

@ -1,6 +1,6 @@
$NetBSD: patch-ab,v 1.6 2006/01/12 23:37:31 joerg Exp $ $NetBSD: patch-ab,v 1.7 2006/01/19 18:53:00 joerg Exp $
--- configure.orig 2005-07-14 11:22:39.000000000 +0000 --- configure.orig 2005-07-14 13:22:39.000000000 +0200
+++ configure +++ configure
@@ -19864,7 +19864,6 @@ else @@ -19864,7 +19864,6 @@ else
echo "${ECHO_T}no" >&6 echo "${ECHO_T}no" >&6
@ -24,15 +24,23 @@ $NetBSD: patch-ab,v 1.6 2006/01/12 23:37:31 joerg Exp $
); );
int int
main () main ()
@@ -25352,7 +25356,11 @@ cat >>confdefs.h <<_ACEOF @@ -25351,9 +25355,18 @@ cat >>confdefs.h <<_ACEOF
#define HAVE_PROT_GETHOSTBYADDR_1 const char *
_ACEOF _ACEOF
cat >>confdefs.h <<_ACEOF -cat >>confdefs.h <<_ACEOF
+#if defined(__DragonFly__) +case "$host_os" in
+dragonfly*)
+ cat >>confdefs.h <<_ACEOF
#define HAVE_PROT_GETHOSTBYADDR_2 int #define HAVE_PROT_GETHOSTBYADDR_2 int
+#else
+#define HAVE_PROT_GETHOSTBYADDR_2 socklen_t
+#endif
_ACEOF _ACEOF
+;;
+*)
+ cat >>confdefs.h <<_ACEOF
+#define HAVE_PROT_GETHOSTBYADDR_2 socklen_t
+_ACEOF
+;;
+esac
cat >>confdefs.h <<_ACEOF cat >>confdefs.h <<_ACEOF
#define HAVE_PROT_GETHOSTBYADDR_3 int