From 7fb2347f4430ef112ac6717b848ff3eee3521074 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 5 Nov 2024 21:23:40 -0800 Subject: [PATCH] realloc-posix: mention _LINUX_SOURCE_COMPAT * m4/realloc.m4 (gl_FUNC_REALLOC_0_NONNULL): Add comment about _LINUX_SOURCE_COMPAT. --- m4/realloc.m4 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/m4/realloc.m4 b/m4/realloc.m4 index f34cc4c389..6401f22847 100644 --- a/m4/realloc.m4 +++ b/m4/realloc.m4 @@ -40,6 +40,10 @@ AC_DEFUN([gl_FUNC_REALLOC_POSIX], # gl_FUNC_REALLOC_0_NONNULL # ------------------------- # Replace realloc if realloc (..., 0) returns null. +# Modules that use this macro directly or indirectly should depend +# on extensions-aix, so that _LINUX_SOURCE_COMPAT gets defined +# before this macro gets invoked. This helps if !(__VEC__ || __AIXVEC), +# and doesn't hurt otherwise. AC_DEFUN([gl_FUNC_REALLOC_0_NONNULL], [ AC_REQUIRE([gl_STDLIB_H_DEFAULTS]) -- 2.39.5