diff options
author | ume <ume@FreeBSD.org> | 2005-06-03 04:14:55 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-06-03 04:14:55 +0800 |
commit | 89a85b8ead1edd160ba1dd0c7ff6190b87ef0f51 (patch) | |
tree | 035b8aa85fdb8445f8629279babf9bf3cb8691a9 | |
parent | 9451c6c220233d25b2d658360786a68e32293c4e (diff) | |
download | freebsd-ports-gnome-89a85b8ead1edd160ba1dd0c7ff6190b87ef0f51.tar.gz freebsd-ports-gnome-89a85b8ead1edd160ba1dd0c7ff6190b87ef0f51.tar.zst freebsd-ports-gnome-89a85b8ead1edd160ba1dd0c7ff6190b87ef0f51.zip |
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/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 41d4abeed506..f8fa798b1826 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 c061817985fa..e7d5108de553 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; |