From fffa69145b1f83057e67b0b6decedde455f1a48a Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 27 Oct 1992 22:53:58 +0000 Subject: [PATCH] Include stdio.h. [__GNU_LIBRARY__] (write): Defined. From-SVN: r2625 --- gcc/libgcc2.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index e4aa084a3f3..fd27c953476 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -1224,6 +1224,16 @@ __builtin_new (sz) #endif #ifdef L_caps_New + +/* This gets us __GNU_LIBRARY__. */ +#include + +#ifdef __GNU_LIBRARY__ + /* Avoid forcing the library's meaning of `write' on the user program + by using the "internal" name (for use within the library) +#define write(fd, buf, n) __write((fd), (buf), (n)) +#endif + typedef void (*vfp)(void); extern void *__builtin_new (size_t); -- 2.30.2