aboutsummaryrefslogtreecommitdiffstats
path: root/mail/libesmtp
diff options
context:
space:
mode:
authorume <ume@FreeBSD.org>2003-10-30 00:25:23 +0800
committerume <ume@FreeBSD.org>2003-10-30 00:25:23 +0800
commit40bcfff886f608f362346c4de43748f424a2fb0d (patch)
tree8bef3c875366fb2d7f719f913d3a8d819cf53f20 /mail/libesmtp
parent2540054dac6fd665f7ef845d12a8bcc4e7b970a9 (diff)
downloadfreebsd-ports-gnome-40bcfff886f608f362346c4de43748f424a2fb0d.tar.gz
freebsd-ports-gnome-40bcfff886f608f362346c4de43748f424a2fb0d.tar.zst
freebsd-ports-gnome-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 'mail/libesmtp')
-rw-r--r--mail/libesmtp/files/patch-errors.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/mail/libesmtp/files/patch-errors.c b/mail/libesmtp/files/patch-errors.c
new file mode 100644
index 000000000000..adb6255452ea
--- /dev/null
+++ b/mail/libesmtp/files/patch-errors.c
@@ -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)