From: Paul Eggert Date: Wed, 21 Apr 2021 18:10:06 +0000 (-0700) Subject: realloc: port to AIX 7.1 X-Git-Tag: v1.0~2922 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=882243dcfe41bd703db61af56e954d8dff3369ce;p=thirdparty%2Fgnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index b013d915ff..5792843368 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 c0d94b4399..0c87d0d92d 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,