summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2005-06-02 20:14:55 +0000
committerume <ume@FreeBSD.org>2005-06-02 20:14:55 +0000
commit89a85b8ead1edd160ba1dd0c7ff6190b87ef0f51 (patch)
tree035b8aa85fdb8445f8629279babf9bf3cb8691a9
parent9451c6c220233d25b2d658360786a68e32293c4e (diff)
downloadFreeBSD-ports-89a85b8ead1edd160ba1dd0c7ff6190b87ef0f51.zip
FreeBSD-ports-89a85b8ead1edd160ba1dd0c7ff6190b87ef0f51.tar.gz
Our getaddrinfo(3) never returns EAI_NODATA on 5.2-RELEASE and
later as RFC 3493 deprecated it. So, we have to see EAI_NONAME instead. Approved by: petef
-rw-r--r--www/crawl/Makefile1
-rw-r--r--www/crawl/files/patch-dns.c24
2 files changed, 16 insertions, 9 deletions
diff --git a/www/crawl/Makefile b/www/crawl/Makefile
index 41d4abe..f8fa798 100644
--- a/www/crawl/Makefile
+++ b/www/crawl/Makefile
@@ -7,6 +7,7 @@
PORTNAME= crawl
PORTVERSION= 0.4
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= http://www.monkey.org/~provos/
diff --git a/www/crawl/files/patch-dns.c b/www/crawl/files/patch-dns.c
index c061817..e7d5108 100644
--- a/www/crawl/files/patch-dns.c
+++ b/www/crawl/files/patch-dns.c
@@ -1,12 +1,18 @@
$FreeBSD$
---- dns.c.orig Fri Mar 12 07:29:07 2004
-+++ dns.c Fri Mar 12 07:29:19 2004
-@@ -46,6 +46,7 @@
- #include "tree.h"
- #include "http.h"
- #include "dns.h"
-+#include "getaddrinfo.h"
-
- ssize_t atomicio(ssize_t (*f)(), int, void *, size_t);
+--- dns.c.orig Sun May 18 10:21:33 2003
++++ dns.c Mon May 30 16:20:14 2005
+@@ -562,8 +562,13 @@
+ if (res != 0) {
+ fprintf(stderr, "%s: getaddrinfo(%s): %s\n", __func__,
+ ip, gai_strerror(res));
++#ifdef EAI_NODATA
+ if (res != EAI_NODATA)
+ return (-1);
++#else
++ if (res != EAI_NONAME)
++ return (-1);
++#endif
+ /* Negative caching */
+ ai = NULL;
OpenPOWER on IntegriCloud