diff options
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/mtrace.c | 4 | ||||
-rw-r--r-- | malloc/obstack.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/malloc/mtrace.c b/malloc/mtrace.c index 64fb62a..40b3d74 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; diff --git a/malloc/obstack.c b/malloc/obstack.c index cc18dc1..f39b638 100644 --- a/malloc/obstack.c +++ b/malloc/obstack.c @@ -1,5 +1,5 @@ /* obstack.c - subroutines used implicitly by object stack macros - Copyright (C) 1988,89,90,91,92,93,94,96,97 Free Software Foundation, Inc. + Copyright (C) 1988,89,90,91,92,93,94,96,97,98 Free Software Foundation, Inc. This file is part of the GNU C Library. Its master source is NOT part of the C library, however. The master source lives in /gd/gnu/lib. @@ -459,6 +459,9 @@ _obstack_memory_used (h) # define _(Str) (Str) # endif #endif +#if defined _LIBC && defined USE_IN_LIBIO +# define fputs(s, f) _IO_fputs (s, f) +#endif static void print_and_abort () |