From: Pádraig Brady Date: Fri, 3 Mar 2017 08:23:56 +0000 (-0800) Subject: build: fix libstdbuf build on AIX 7 X-Git-Tag: v8.27~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b88e4dd3c6f5cf6e825a5a269669e703408fdb4d;p=thirdparty%2Fcoreutils.git build: fix libstdbuf build on AIX 7 * src/libstdbuf.c: undef malloc so as libstdbuf is not linked with gnulib, and anyway the replacement is never needed since we never malloc(0). Reported by Assaf Gordon. --- diff --git a/src/libstdbuf.c b/src/libstdbuf.c index 2abb0f8ead..e295cc8122 100644 --- a/src/libstdbuf.c +++ b/src/libstdbuf.c @@ -20,6 +20,11 @@ #include #include "system.h" +/* Deactivate config.h's "rpl_"-prefixed definition of malloc, + since we don't link gnulib here, and the replacement isn't + needed in this case as we don't malloc(0). */ +#undef malloc + /* Note currently for glibc (2.3.5) the following call does not change the buffer size, and more problematically does not give any indication that the new size request was ignored: