]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
stdbuf: port lib to macOS
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 24 Mar 2021 23:59:40 +0000 (16:59 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Mar 2021 00:00:46 +0000 (17:00 -0700)
* src/libstdbuf.c (fprintf, free, strtoumax): Undef these too,
since Gnulib might replace them.

src/libstdbuf.c

index 30a9e930986f93d63d7c41b1853a964bc4fdd53b..3cb74260af525dbb988d305f8592bd2d9f7bca5a 100644 (file)
 #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