]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
realloc: port to AIX 7.1
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:10:06 +0000 (11:10 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 21 Apr 2021 18:10:49 +0000 (11:10 -0700)
* lib/realloc.c (_GL_USE_STDLIB_ALLOC): Do not define.  This
module relies on GNU malloc.  This fixes a test failure on AIX 7.1.

ChangeLog
lib/realloc.c

index b013d915ff7a29eed0ede66e3fe0c29f61ce0e02..579284336809679b8b476b472ce1e8153ecd80e1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-04-21  Paul Eggert  <eggert@cs.ucla.edu>
 
+       realloc: port to AIX 7.1
+       * lib/realloc.c (_GL_USE_STDLIB_ALLOC): Do not define.  This
+       module relies on GNU malloc.  This fixes a test failure on AIX 7.1.
+
        malloc: simplify
        * lib/malloc.c: Omit unnecessary "#undef malloc".
        I recently introduced it by mistake.  This module defines
index c0d94b4399ae4fccbf5ec7d255b433af420ee535..0c87d0d92d80b1be27610412229e380dc9ad5321 100644 (file)
@@ -18,7 +18,6 @@
 
 /* written by Jim Meyering and Bruno Haible */
 
-#define _GL_USE_STDLIB_ALLOC 1
 #include <config.h>
 
 #include <stdlib.h>
@@ -27,7 +26,8 @@
 
 #include "xalloc-oversized.h"
 
-/* Call the system's realloc below.  */
+/* Call the system's realloc below.  This file does not define
+   _GL_USE_STDLIB_ALLOC because it needs Gnulib's malloc if present.  */
 #undef realloc
 
 /* Change the size of an allocated block of memory P to N bytes,