1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/irc/ninja/files/patch-source::ircaux.c
Hajimu UMEMOTO af6d6ef443 fix build on 5-CURRENT after RFC3542 change (EAI_ADDRFAMILY and
EAI_NODATA were obsoleted).

There is some issue; we have EAI_NODATA as an alias of EAI_NONAME
for workaround.  However, some of these ports use it as a case
label of switch.  Since our alias broke such code, we may better
to consider deleting such alias.

Requested by:	kris
Approved by:	portmgr (kris) (implicitly)
2003-10-29 16:25:23 +00:00

17 lines
322 B
C

Index: source/ircaux.c
diff -u source/ircaux.c.orig source/ircaux.c
--- source/ircaux.c.orig Sun Jan 13 09:41:25 2002
+++ source/ircaux.c Thu Oct 30 00:57:46 2003
@@ -852,9 +852,11 @@
return -10;
#else
{
+#ifdef EAI_ADDRFAMILY
if (err == EAI_ADDRFAMILY)
return -10;
else
+#endif
return -2;
}
#endif