mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-01 10:59:55 +00:00
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)
This commit is contained in:
parent
8d87a71c30
commit
af6d6ef443
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92577
16
irc/ninja/files/patch-source::ircaux.c
Normal file
16
irc/ninja/files/patch-source::ircaux.c
Normal file
@ -0,0 +1,16 @@
|
||||
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
|
30
mail/libesmtp/files/patch-errors.c
Normal file
30
mail/libesmtp/files/patch-errors.c
Normal file
@ -0,0 +1,30 @@
|
||||
Index: errors.c
|
||||
diff -u errors.c.orig errors.c
|
||||
--- errors.c.orig Mon Mar 4 18:06:58 2002
|
||||
+++ errors.c Thu Oct 30 00:52:41 2003
|
||||
@@ -77,8 +77,12 @@
|
||||
MAP(EAI_AGAIN)
|
||||
MAP(EAI_FAIL)
|
||||
MAP(EAI_MEMORY)
|
||||
+#ifdef EAI_ADDRFAMILY
|
||||
MAP(EAI_ADDRFAMILY)
|
||||
+#endif
|
||||
+#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
|
||||
MAP(EAI_NODATA)
|
||||
+#endif
|
||||
MAP(EAI_FAMILY)
|
||||
MAP(EAI_BADFLAGS)
|
||||
MAP(EAI_NONAME)
|
||||
@@ -98,8 +102,12 @@
|
||||
MAP(EAI_AGAIN)
|
||||
MAP(EAI_FAIL)
|
||||
MAP(EAI_MEMORY)
|
||||
+#ifdef EAI_ADDRFAMILY
|
||||
MAP(EAI_ADDRFAMILY)
|
||||
+#endif
|
||||
+#if defined(EAI_NODATA) && EAI_NODATA != EAI_NONAME
|
||||
MAP(EAI_NODATA)
|
||||
+#endif
|
||||
MAP(EAI_FAMILY)
|
||||
MAP(EAI_BADFLAGS)
|
||||
MAP(EAI_NONAME)
|
18
net/libunp/files/patch-at
Normal file
18
net/libunp/files/patch-at
Normal file
@ -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
|
19
net/nc6/files/patch-ac
Normal file
19
net/nc6/files/patch-ac
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user