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 + /*