aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-10-27 22:53:58 +0000
committerRichard Stallman <rms@gnu.org>1992-10-27 22:53:58 +0000
commitfffa69145b1f83057e67b0b6decedde455f1a48a (patch)
tree853e9ed8ac1749285cf3d90f4db198c366ad7ee6
parentc5bf1a720bbc8d291577646974f29990dfdec0fe (diff)
downloadgcc-fffa69145b1f83057e67b0b6decedde455f1a48a.zip
gcc-fffa69145b1f83057e67b0b6decedde455f1a48a.tar.gz
gcc-fffa69145b1f83057e67b0b6decedde455f1a48a.tar.bz2
Include stdio.h.
[__GNU_LIBRARY__] (write): Defined. From-SVN: r2625
-rw-r--r--gcc/libgcc2.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index e4aa084..fd27c95 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 <stdio.h>
+
+#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);