]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
build: fix libstdbuf build on AIX 7
authorPádraig Brady <P@draigBrady.com>
Fri, 3 Mar 2017 08:23:56 +0000 (00:23 -0800)
committerPádraig Brady <P@draigBrady.com>
Fri, 3 Mar 2017 08:23:56 +0000 (00:23 -0800)
* 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

index 2abb0f8eadc176aadf6930697a313d00811772f4..e295cc81228f3f37ae6279e27a1d57daeec5f60f 100644 (file)
 #include <stdio.h>
 #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: