From 976522a861eb4541f8c9735f8467c3197ef16e87 Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Mon, 9 Dec 2024 16:44:06 +0800 Subject: [PATCH] libvmime: replace AI_NUMERICSERV if needed (#26978) Closes: https://trac.macports.org/ticket/71487 --- mail/libvmime/Portfile | 3 ++- mail/libvmime/files/patch-AI_NUMERICSERV.diff | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 mail/libvmime/files/patch-AI_NUMERICSERV.diff diff --git a/mail/libvmime/Portfile b/mail/libvmime/Portfile index c550f7474ba67..e4f888f4d67c4 100644 --- a/mail/libvmime/Portfile +++ b/mail/libvmime/Portfile @@ -43,7 +43,8 @@ patchfiles expected-value-in-expression.patch \ use-of-undeclared-identifier-FALSE.patch \ patch-unbreak-arm64-powerpc.diff \ patch-cxx17.diff \ - patch-icu.diff + patch-icu.diff \ + patch-AI_NUMERICSERV.diff # Required for ICU compiler.cxx_standard 2017 diff --git a/mail/libvmime/files/patch-AI_NUMERICSERV.diff b/mail/libvmime/files/patch-AI_NUMERICSERV.diff new file mode 100644 index 0000000000000..9caa73fc1e4b3 --- /dev/null +++ b/mail/libvmime/files/patch-AI_NUMERICSERV.diff @@ -0,0 +1,16 @@ +From https://github.com/macports/macports-legacy-support/blob/0f1292b4734aac30188ee03561ecd1430a255062/include/netdb.h#L23 + +--- src/vmime/platforms/posix/posixSocket.cpp 2024-12-08 09:04:25.000000000 +0800 ++++ src/vmime/platforms/posix/posixSocket.cpp 2024-12-08 09:19:54.000000000 +0800 +@@ -59,6 +59,11 @@ + #endif + + ++#ifndef AI_NUMERICSERV ++#define AI_NUMERICSERV 0x00001000 ++#endif ++ ++ + // Workaround for detection of strerror_r variants + #if VMIME_HAVE_STRERROR_R +