]> Savannah Git Hosting - gnulib.git/commitdiff
getaddrinfo: Fix AI_NUMERICSERV configure check on GCC 14 (regr. 2025-02-12).
authorCollin Funk <collin.funk1@gmail.com>
Wed, 5 Mar 2025 05:45:58 +0000 (21:45 -0800)
committerCollin Funk <collin.funk1@gmail.com>
Wed, 5 Mar 2025 05:45:58 +0000 (21:45 -0800)
* m4/getaddrinfo.m4 (gl_GETADDRINFO): Define a pointer to pass to
getaddrinfo where it allocates and stores the result.

ChangeLog
m4/getaddrinfo.m4

index a76b9239570f3c5624fa5a69a7890836c9ce239b..13b99e0b1c489f38e9e553ba79616285217b2779 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2025-03-04  Collin Funk  <collin.funk1@gmail.com>
+
+       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  <bruno@clisp.org>
 
        doc: Update publication recipe.
index 5207f0565f793288323eecbb15815117a9feaa75..2931d526cdb7bcda19134bf6f5bd87aad9f83d4f 100644 (file)
@@ -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 <string.h>
             ]], [[
               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;