From 238dd8eb7610bf4c5e4319bafed6ee400b2d3853 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 24 Mar 2021 16:59:40 -0700 Subject: [PATCH] stdbuf: port lib to macOS * src/libstdbuf.c (fprintf, free, strtoumax): Undef these too, since Gnulib might replace them. --- src/libstdbuf.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 -- 2.47.2