Skip to content

Commit

Permalink
libvmime: replace AI_NUMERICSERV if needed (macports#26978)
Browse files Browse the repository at this point in the history
  • Loading branch information
barracuda156 authored Dec 9, 2024
1 parent 67b178a commit 976522a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mail/libvmime/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 16 additions & 0 deletions mail/libvmime/files/patch-AI_NUMERICSERV.diff
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 976522a

Please sign in to comment.