stdbuf: port lib to macOS

* src/libstdbuf.c (fprintf, free, strtoumax): Undef these too,
since Gnulib might replace them.
This commit is contained in:
Paul Eggert committed 2021-03-24 17:00:46 -07:00
1 parent 1677294076
commit 238dd8eb76
1 file changed
+5 -3
+5 -3
View File
@@ -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