pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/dante DragonFly's gethostbyaddr needs int as secon...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/773a25d60d8e
branches:  trunk
changeset: 506225:773a25d60d8e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Jan 12 23:37:31 2006 +0000

description:
DragonFly's gethostbyaddr needs int as second argument.

diffstat:

 net/dante/distinfo         |   4 ++--
 net/dante/patches/patch-ab |  22 +++++++++++++++-------
 2 files changed, 17 insertions(+), 9 deletions(-)

diffs (62 lines):

diff -r b18be1e6425c -r 773a25d60d8e net/dante/distinfo
--- a/net/dante/distinfo        Thu Jan 12 23:12:06 2006 +0000
+++ b/net/dante/distinfo        Thu Jan 12 23:37:31 2006 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.9 2005/08/12 19:13:11 drochner Exp $
+$NetBSD: distinfo,v 1.10 2006/01/12 23:37:31 joerg Exp $
 
 SHA1 (dante-1.1.17.tar.gz) = 25d4dd85de93e65e519d498085c12eee597a5a83
 RMD160 (dante-1.1.17.tar.gz) = ab8f37dd5d141d35258916eecfe9e8d0393dc207
 Size (dante-1.1.17.tar.gz) = 845155 bytes
 SHA1 (patch-aa) = 856884522529122afe037fff610ce89a978d2a2b
-SHA1 (patch-ab) = e4aabf55e51bd3dc2f6e90301a04f288043f1e7b
+SHA1 (patch-ab) = 5958c6bca36b85e9f1bdf1388c86844bad6b92a3
diff -r b18be1e6425c -r 773a25d60d8e net/dante/patches/patch-ab
--- a/net/dante/patches/patch-ab        Thu Jan 12 23:12:06 2006 +0000
+++ b/net/dante/patches/patch-ab        Thu Jan 12 23:37:31 2006 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ab,v 1.5 2005/04/04 10:00:54 adam Exp $
+$NetBSD: patch-ab,v 1.6 2006/01/12 23:37:31 joerg Exp $
 
---- configure.orig     2005-01-24 10:12:25.000000000 +0000
+--- configure.orig     2005-07-14 11:22:39.000000000 +0000
 +++ configure
-@@ -19858,7 +19858,6 @@ else
+@@ -19864,7 +19864,6 @@ else
  echo "${ECHO_T}no" >&6
      #autoconf_compflags is set to "-g -O2" with GCC
      #override CFLAGS when running configure to avoid this
@@ -10,21 +10,29 @@
  fi
  
  #-Wall ?
-@@ -25304,7 +25303,7 @@ cat >>conftest.$ac_ext <<_ACEOF
+@@ -25309,8 +25308,13 @@ cat >>conftest.$ac_ext <<_ACEOF
+ #include <netdb.h>
  #include <unistd.h>
  
++#if defined(__DragonFly__)
  struct hostent *
--gethostbyaddr( const char *, int, int
+ gethostbyaddr( const char *, int, int
++#else
++struct hostent *
 +gethostbyaddr( const char *, socklen_t, int
++#endif
  );
  int
  main ()
-@@ -25346,7 +25345,7 @@ cat >>confdefs.h <<_ACEOF
+@@ -25352,7 +25356,11 @@ cat >>confdefs.h <<_ACEOF
  _ACEOF
  
  cat >>confdefs.h <<_ACEOF
--#define HAVE_PROT_GETHOSTBYADDR_2 int
++#if defined(__DragonFly__)
+ #define HAVE_PROT_GETHOSTBYADDR_2 int
++#else
 +#define HAVE_PROT_GETHOSTBYADDR_2 socklen_t
++#endif
  _ACEOF
  
  cat >>confdefs.h <<_ACEOF



Home | Main Index | Thread Index | Old Index