diff options
author | ume <ume@FreeBSD.org> | 2003-10-30 00:25:23 +0800 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-10-30 00:25:23 +0800 |
commit | 40bcfff886f608f362346c4de43748f424a2fb0d (patch) | |
tree | 8bef3c875366fb2d7f719f913d3a8d819cf53f20 /net | |
parent | 2540054dac6fd665f7ef845d12a8bcc4e7b970a9 (diff) | |
download | freebsd-ports-graphics-40bcfff886f608f362346c4de43748f424a2fb0d.tar.gz freebsd-ports-graphics-40bcfff886f608f362346c4de43748f424a2fb0d.tar.zst freebsd-ports-graphics-40bcfff886f608f362346c4de43748f424a2fb0d.zip |
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)
Diffstat (limited to 'net')
-rw-r--r-- | net/libunp/files/patch-at | 18 | ||||
-rw-r--r-- | net/nc6/files/patch-ac | 19 |
2 files changed, 37 insertions, 0 deletions
diff --git a/net/libunp/files/patch-at b/net/libunp/files/patch-at new file mode 100644 index 00000000000..25f4146ab45 --- /dev/null +++ b/net/libunp/files/patch-at @@ -0,0 +1,18 @@ +Index: libgai/unp.h +diff -u libgai/unp.h.orig libgai/unp.h +--- libgai/unp.h.orig Mon Sep 15 04:49:59 1997 ++++ libgai/unp.h Thu Oct 30 00:31:12 2003 +@@ -58,6 +58,13 @@ + # include <pthread.h> + #endif + ++#ifndef EAI_ADDRFAMILY ++#define EAI_ADDRFAMILY 1 ++#endif ++#ifndef EAI_NODATA ++#define EAI_NODATA 7 ++#endif ++ + /* OSF/1 actually disables recv() and send() in <sys/socket.h> */ + #ifdef __osf__ + #undef recv diff --git a/net/nc6/files/patch-ac b/net/nc6/files/patch-ac new file mode 100644 index 00000000000..a0f8f0ee051 --- /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; |