From: Paul Eggert Date: Wed, 24 Mar 2021 23:59:40 +0000 (-0700) Subject: stdbuf: port lib to macOS X-Git-Tag: v9.0~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=238dd8eb7610bf4c5e4319bafed6ee400b2d3853;p=thirdparty%2Fcoreutils.git stdbuf: port lib to macOS * src/libstdbuf.c (fprintf, free, strtoumax): Undef these too, since Gnulib might replace them. --- diff --git a/src/libstdbuf.c b/src/libstdbuf.c index 30a9e93098..3cb74260af 100644 --- a/src/libstdbuf.c +++ b/src/libstdbuf.c @@ -22,10 +22,12 @@ #include "system.h" #include "minmax.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). */ +/* Deactivate config.h's "rpl_"-prefixed definitions, since we don't + link gnulib here, and the replacements aren't needed. */ +#undef fprintf +#undef free #undef malloc +#undef strtoumax /* Note currently for glibc (2.3.5) the following call does not change the buffer size, and more problematically does not give any indication