aboutsummaryrefslogtreecommitdiff
path: root/malloc/mtrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'malloc/mtrace.c')
-rw-r--r--malloc/mtrace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/malloc/mtrace.c b/malloc/mtrace.c
index 64fb62a131..40b3d74f3c 100644
--- a/malloc/mtrace.c
+++ b/malloc/mtrace.c
@@ -40,6 +40,10 @@ extern char *getenv ();
#include <stdlib.h>
#endif
+#if defined _LIBC && defined USE_IN_LIBIO
+# define setvbuf(s, b, f, l) _IO_setvbuf (s, b, f, l)
+#endif
+
#define TRACE_BUFFER_SIZE 512
static FILE *mallstream;