1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/net/nc6/files/patch-ac
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

20 lines
463 B
Plaintext

Index: src/filter.c
diff -u src/filter.c.orig src/filter.c
--- src/filter.c.orig Mon Apr 14 18:00:50 2003
+++ src/filter.c Thu Oct 30 00:23:07 2003
@@ -205,8 +205,14 @@
if (err != 0) {
/* some errors just indicate that the address wasn't suitable */
switch (err) {
+#ifdef EAI_NODATA
case EAI_NODATA:
+#else
+ case EAI_NONAME:
+#endif
+#ifdef EAI_ADDRFAMILY
case EAI_ADDRFAMILY:
+#endif
case EAI_SERVICE:
case EAI_SOCKTYPE:
return FALSE;