>From 54a82d1e9923255574447423c8f1c90fac8e5934 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues
Date: Sat, 28 Aug 2010 09:21:08 +0200 Subject: [PATCH 4/4] Fix malloc, calloc, and realloc modules for AIX. * lib/calloc.c [!HAVE_CALLOC]: Also define NEED_CALLOC_GNU in this case. * lib/malloc.c [!HAVE_MALLOC]: Also define NEED_MALLOC_GNU in this case. * lib/realloc.c [!HAVE_REALLOC]: Also define NEED_REALLOC_GNU in this case. Also define SYSTEM_MALLOC_GLIBC_COMPATIBLE, if also GNULIB_MALLOC_GNU. Fixes testsuite regressions of GNU M4 branch-1.4 on AIX 5.3 reported by Rainer Tammer. Regression introduced in v0.0-4009-g723fc0b. Signed-off-by: Ralf Wildenhues --- ChangeLog | 12 ++++++++++++ lib/calloc.c | 5 +++-- lib/malloc.c | 5 +++-- lib/realloc.c | 10 ++++++---- 4 files changed, 24 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 626d8cf..0a6403f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,17 @@ 2010-08-28 Ralf Wildenhues + Fix malloc, calloc, and realloc modules for AIX. + * lib/calloc.c [!HAVE_CALLOC]: Also define NEED_CALLOC_GNU + in this case. + * lib/malloc.c [!HAVE_MALLOC]: Also define NEED_MALLOC_GNU + in this case. + * lib/realloc.c [!HAVE_REALLOC]: Also define NEED_REALLOC_GNU + in this case. Also define SYSTEM_MALLOC_GLIBC_COMPATIBLE, + if also GNULIB_MALLOC_GNU. + Fixes testsuite regressions of GNU M4 branch-1.4 on AIX 5.3 + reported by Rainer Tammer. + Regression introduced in v0.0-4009-g723fc0b. + Tests for module 'realloc'. * modules/realloc-tests: New file. * tests/test-realloc.c: New file. diff --git a/lib/calloc.c b/lib/calloc.c index d28e158..a054074 100644 --- a/lib/calloc.c +++ b/lib/calloc.c @@ -18,8 +18,9 @@ /* written by Jim Meyering and Bruno Haible */ #include