summaryrefslogtreecommitdiff
path: root/net/nc6
diff options
context:
space:
mode:
authorHajimu UMEMOTO <ume@FreeBSD.org>2003-10-29 16:25:23 +0000
committerHajimu UMEMOTO <ume@FreeBSD.org>2003-10-29 16:25:23 +0000
commitaf6d6ef44301138b8c84d89faf790308d8f31d56 (patch)
treeff2ea9992e8215623ec20b39f3e8336a1c5a00f2 /net/nc6
parentAdd fuse 0.6.1.1, Free Unix (Sinclair ZX-)Spectrum Emulator. (diff)
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)
Notes
Notes: svn path=/head/; revision=92577
Diffstat (limited to 'net/nc6')
-rw-r--r--net/nc6/files/patch-ac19
1 files changed, 19 insertions, 0 deletions
diff --git a/net/nc6/files/patch-ac b/net/nc6/files/patch-ac
new file mode 100644
index 000000000000..a0f8f0ee0518
--- /dev/null
+++ b/net/nc6/files/patch-ac
@@ -0,0 +1,19 @@
+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;