diff options
-rw-r--r-- | www/crawl/Makefile | 1 | ||||
-rw-r--r-- | www/crawl/files/patch-dns.c | 24 |
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; |