summaryrefslogtreecommitdiff
path: root/chat/irssi/patches
diff options
context:
space:
mode:
authorreed <reed@pkgsrc.org>2005-03-20 05:05:59 +0000
committerreed <reed@pkgsrc.org>2005-03-20 05:05:59 +0000
commit4baf3520bd158aad8e2c7f5296da78a98ad5e03d (patch)
tree5bea0986dd93a35a9ffa3afd0f86a7aaada09b40 /chat/irssi/patches
parentcd455bc7008cabcac3ae8741c28876c7433c7add (diff)
downloadpkgsrc-4baf3520bd158aad8e2c7f5296da78a98ad5e03d.tar.gz
Fix build error under FreeBSD 5.3. EAI_NODATA is not defined.
Okay'd by maintainer, Otto H. Tested under NetBSD 1.6.2 and FreebSD 5.3. (I later saw same fix in irssi CVS.) This will close PR pkg/28534.
Diffstat (limited to 'chat/irssi/patches')
-rw-r--r--chat/irssi/patches/patch-ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/chat/irssi/patches/patch-ac b/chat/irssi/patches/patch-ac
new file mode 100644
index 00000000000..76da02abfc9
--- /dev/null
+++ b/chat/irssi/patches/patch-ac
@@ -0,0 +1,16 @@
+$NetBSD: patch-ac,v 1.6 2005/03/20 05:05:59 reed Exp $
+
+--- src/core/network.c.orig Wed Mar 16 20:01:11 2005
++++ src/core/network.c Wed Mar 16 20:03:31 2005
+@@ -607,7 +607,11 @@
+ int net_hosterror_notfound(int error)
+ {
+ #ifdef HAVE_IPV6
++#ifdef EAI_NODATA
+ return error != 1 && (error == EAI_NONAME || error == EAI_NODATA);
++#else
++ return error != 1 && (error == EAI_NONAME);
++#endif
+ #else
+ return error == HOST_NOT_FOUND || error == NO_ADDRESS;
+ #endif