aboutsummaryrefslogtreecommitdiff
path: root/dns/idnkit
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2006-09-03 12:31:09 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2006-09-03 12:31:09 +0000
commitb583668228cbee98a8290ffaca9f87dd73e40048 (patch)
tree89cbae56babf65e69a76a5550c1ee8f018e5c814 /dns/idnkit
parent5a7470d153320b4c775bfeba5ec842696ea7db2c (diff)
downloadports-b583668228cbee98a8290ffaca9f87dd73e40048.tar.gz
ports-b583668228cbee98a8290ffaca9f87dd73e40048.zip
Notes
Diffstat (limited to 'dns/idnkit')
-rw-r--r--dns/idnkit/files/patch-configure54
-rw-r--r--dns/idnkit/files/patch-tools::runidn::resolver.c13
2 files changed, 67 insertions, 0 deletions
diff --git a/dns/idnkit/files/patch-configure b/dns/idnkit/files/patch-configure
new file mode 100644
index 000000000000..641d4b2a94e4
--- /dev/null
+++ b/dns/idnkit/files/patch-configure
@@ -0,0 +1,54 @@
+Index: configure
+diff -u configure.orig configure
+--- configure.orig Tue Mar 11 08:53:20 2003
++++ configure Sun Sep 3 21:07:20 2006
+@@ -2633,7 +2644,37 @@
+ ac_cv_flavor_gethostbyaddr=unknown
+ else
+ cat > conftest.$ac_ext <<EOF
+-#line 2637 "configure"
++#line 2648 "configure"
++#include "confdefs.h"
++
++ #include <stddef.h>
++ #include <sys/types.h>
++ #include <sys/socket.h>
++ #include <netdb.h>
++ struct hostent *gethostbyaddr(const void *addr, int len, int type) {
++ return NULL;
++ }
++ int main() {
++ (void)gethostbyaddr(NULL, 0, 0);
++ return 0;
++ }
++
++EOF
++if { (eval echo configure:2664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
++then
++ ac_cv_flavor_gethostbyaddr=freebsd6
++else
++ echo "configure: failed program was:" >&5
++ cat conftest.$ac_ext >&5
++fi
++rm -fr conftest*
++fi
++
++ if test "$cross_compiling" = yes; then
++ ac_cv_flavor_gethostbyaddr=unknown
++else
++ cat > conftest.$ac_ext <<EOF
++#line 2678 "configure"
+ #include "confdefs.h"
+
+ #include <stddef.h>
+@@ -2675,6 +2716,10 @@
+ ac_cv_type_ghba_addr_t='const char *'
+ ac_cv_type_ghba_addrlen_t='size_t'
+ ;;
++ freebsd6)
++ ac_cv_type_ghba_addr_t='const void *'
++ ac_cv_type_ghba_addrlen_t='int'
++ ;;
+ traditional | none)
+ ac_cv_type_ghba_addr_t='const char *'
+ ac_cv_type_ghba_addrlen_t='int'
diff --git a/dns/idnkit/files/patch-tools::runidn::resolver.c b/dns/idnkit/files/patch-tools::runidn::resolver.c
new file mode 100644
index 000000000000..b0404437549b
--- /dev/null
+++ b/dns/idnkit/files/patch-tools::runidn::resolver.c
@@ -0,0 +1,13 @@
+Index: tools/runidn/resolver.c
+diff -u -p tools/runidn/resolver.c.orig tools/runidn/resolver.c
+--- tools/runidn/resolver.c.orig Fri Nov 29 23:26:57 2002
++++ tools/runidn/resolver.c Sun Sep 3 21:20:21 2006
+@@ -726,7 +726,7 @@ ENTRY(gethostbyname2_r)(const char *name
+
+ #ifdef HAVE_GETHOSTBYADDR_R
+ int
+-ENTRY(gethostbyaddr_r)(GHBA_ADDR_T addr, GHBA_ADDRLEN_T len, int type,
++ENTRY(gethostbyaddr_r)(GHBA_ADDR_T addr, socklen_t len, int type,
+ struct hostent *result,
+ char *buffer, size_t buflen,
+ struct hostent **rp, int *errp)