From: Collin Funk Date: Wed, 5 Mar 2025 05:45:58 +0000 (-0800) Subject: getaddrinfo: Fix AI_NUMERICSERV configure check on GCC 14 (regr. 2025-02-12). X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7029d554682583586d56deefb60af7a1aae233ef;p=gnulib.git getaddrinfo: Fix AI_NUMERICSERV configure check on GCC 14 (regr. 2025-02-12). * m4/getaddrinfo.m4 (gl_GETADDRINFO): Define a pointer to pass to getaddrinfo where it allocates and stores the result. --- diff --git a/ChangeLog b/ChangeLog index a76b923957..13b99e0b1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2025-03-04 Collin Funk + + getaddrinfo: Fix AI_NUMERICSERV configure check on GCC 14 (regr. 2025-02-12). + * m4/getaddrinfo.m4 (gl_GETADDRINFO): Define a pointer to pass to + getaddrinfo where it allocates and stores the result. + 2025-03-03 Bruno Haible doc: Update publication recipe. diff --git a/m4/getaddrinfo.m4 b/m4/getaddrinfo.m4 index 5207f0565f..2931d526cd 100644 --- a/m4/getaddrinfo.m4 +++ b/m4/getaddrinfo.m4 @@ -1,5 +1,5 @@ # getaddrinfo.m4 -# serial 37 +# serial 38 dnl Copyright (C) 2004-2025 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -108,7 +108,7 @@ int getaddrinfo (const char *, const char *, const struct addrinfo *, struct add #include ]], [[ struct addrinfo hints; - struct addrinfo ai; + struct addrinfo *ai; memset (&hints, 0, sizeof (hints)); hints.ai_flags = AI_NUMERICSERV; return getaddrinfo ("www.gnu.org", "http", &hints, &ai) != EAI_NONAME;