From: Paul Eggert Date: Wed, 6 Nov 2024 05:23:40 +0000 (-0800) Subject: realloc-posix: mention _LINUX_SOURCE_COMPAT X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=7fb2347f4430ef112ac6717b848ff3eee3521074;p=gnulib.git realloc-posix: mention _LINUX_SOURCE_COMPAT * m4/realloc.m4 (gl_FUNC_REALLOC_0_NONNULL): Add comment about _LINUX_SOURCE_COMPAT. --- 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])