aboutsummaryrefslogtreecommitdiffstats
path: root/dns
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2006-09-03 20:31:09 +0800
committerume <ume@FreeBSD.org>2006-09-03 20:31:09 +0800
commitabc0f7de289f800f84e85130411a6832301bfa9b (patch)
tree9ed54fc1dfb448597f6597ab968e572977b82434 /dns
parent826af3bc94455779fa433a7164810990801d3fbf (diff)
downloadfreebsd-ports-gnome-abc0f7de289f800f84e85130411a6832301bfa9b.tar.gz
freebsd-ports-gnome-abc0f7de289f800f84e85130411a6832301bfa9b.tar.zst
freebsd-ports-gnome-abc0f7de289f800f84e85130411a6832301bfa9b.zip
Make it buildable on RELENG_6 after correction of the 2nd argument
of gethostbyaddr(3). Reported by: pointyhat via kris
Diffstat (limited to 'dns')
-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)