]> Savannah Git Hosting - gnulib.git/commitdiff
realloc-posix: mention _LINUX_SOURCE_COMPAT
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Nov 2024 05:23:40 +0000 (21:23 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 6 Nov 2024 06:51:14 +0000 (22:51 -0800)
* m4/realloc.m4 (gl_FUNC_REALLOC_0_NONNULL):
Add comment about _LINUX_SOURCE_COMPAT.

m4/realloc.m4

index f34cc4c38919015bc6d46c7d35b03881de16ef4c..6401f22847c4c0bfcfd9caea085a0c351b391201 100644 (file)
@@ -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])