From 0a51b5c4b7ce0e0418455421b57b94abb7450b32 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Wed, 6 Mar 2024 20:21:18 +0700 Subject: [PATCH] opensmtpd: fix build on Leopard --- mail/opensmtpd/Portfile | 3 ++- mail/opensmtpd/files/EAI_OVERFLOW.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 mail/opensmtpd/files/EAI_OVERFLOW.patch diff --git a/mail/opensmtpd/Portfile b/mail/opensmtpd/Portfile index a71340b3dd238..f845509ad7744 100644 --- a/mail/opensmtpd/Portfile +++ b/mail/opensmtpd/Portfile @@ -44,7 +44,8 @@ post-patch { } #temp fix for 7.4.0p1. Already patched upstream, to be included in next release. -patchfiles configure.patch +patchfiles configure.patch \ + EAI_OVERFLOW.patch depends_build-append \ port:autoconf \ diff --git a/mail/opensmtpd/files/EAI_OVERFLOW.patch b/mail/opensmtpd/files/EAI_OVERFLOW.patch new file mode 100644 index 0000000000000..128d6badf97a7 --- /dev/null +++ b/mail/opensmtpd/files/EAI_OVERFLOW.patch @@ -0,0 +1,15 @@ +https://github.com/OpenSMTPD/OpenSMTPD/pull/1247 + +--- openbsd-compat/defines.h 2023-09-29 20:59:00 ++++ openbsd-compat/defines.h 2024-03-06 20:18:17 +@@ -456,6 +456,10 @@ + # endif + #endif + /* end of chl */ ++ ++#ifndef EAI_OVERFLOW ++#define EAI_OVERFLOW EAI_FAIL ++#endif + + #ifndef HAVE_FPARSELN + /*