From 882243dcfe41bd703db61af56e954d8dff3369ce Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 21 Apr 2021 11:10:06 -0700 Subject: [PATCH 2/2] 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. --- ChangeLog | 4 ++++ lib/realloc.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b013d915f..579284336 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2021-04-21 Paul Eggert + 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 diff --git a/lib/realloc.c b/lib/realloc.c index c0d94b439..0c87d0d92 100644 --- a/lib/realloc.c +++ b/lib/realloc.c @@ -18,7 +18,6 @@ /* written by Jim Meyering and Bruno Haible */ -#define _GL_USE_STDLIB_ALLOC 1 #include #include @@ -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, -- 2.27.0