From aba7a48e44c723978046d2ef7dd43525e39fb798 Mon Sep 17 00:00:00 2001 From: Abdirahim Musse <33973272+abmusse@users.noreply.github.com> Date: Mon, 30 Mar 2026 12:55:12 -0500 Subject: [PATCH] deps: fix aix implicit declaration in OpenSSL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This seems like a bug in AIX header files because the examples show including the headers but upon inspecting these files there are no declarations for sendmmsg and others: https://www.ibm.com/docs/en/aix/7.2.0?topic=s-sendmmsg-subroutine For now we can claim to not have these functions. Alternatively we can declare these ourselves if we are AIX 7.2 or newer. The actual functions look to be available in libc. GCC also has the same implicit function declaration but it happily moves forward. Clang started making this an explict error in clang 16: https://www.redhat.com/en/blog/new-warnings-and-errors-clang-16 PR-URL: https://github.com/nodejs/node/pull/62656 Refs: https://www.ibm.com/docs/en/aix/7.2.0?topic=s-sendmmsg-subroutine Reviewed-By: Richard Lau Reviewed-By: Michaƫl Zasso --- deps/openssl/openssl/crypto/bio/bss_dgram.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps/openssl/openssl/crypto/bio/bss_dgram.c b/deps/openssl/openssl/crypto/bio/bss_dgram.c index 42bb0e861af..c16ec00e9e2 100644 --- a/deps/openssl/openssl/crypto/bio/bss_dgram.c +++ b/deps/openssl/openssl/crypto/bio/bss_dgram.c @@ -68,8 +68,8 @@ #undef NO_RECVMMSG #define NO_RECVMMSG #endif -#if defined(_AIX) && !defined(_AIX72) -/* AIX >= 7.2 provides sendmmsg() and recvmmsg(). */ +#if defined(_AIX) +/* Force fallback to sndmsg and recvmsg */ #undef NO_RECVMMSG #define NO_RECVMMSG #endif