Include stdio.h.
authorRichard Stallman <rms@gnu.org>
Tue, 27 Oct 1992 22:53:58 +0000 (22:53 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 27 Oct 1992 22:53:58 +0000 (22:53 +0000)
[__GNU_LIBRARY__] (write): Defined.

From-SVN: r2625

gcc/libgcc2.c

index e4aa084..fd27c95 100644 (file)
@@ -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);