From b88e4dd3c6f5cf6e825a5a269669e703408fdb4d Mon Sep 17 00:00:00 2001 From: =?utf8?q?P=C3=A1draig=20Brady?= Date: Fri, 3 Mar 2017 00:23:56 -0800 Subject: [PATCH] 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. --- src/libstdbuf.c | 5 +++++ 1 file changed, 5 insertions(+) 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: -- 2.47.2