aboutsummaryrefslogtreecommitdiff
path: root/gcc/system.h
diff options
context:
space:
mode:
authorMark Elbrecht <snowball3@usa.net>1999-03-24 23:35:34 +0000
committerJeff Law <law@gcc.gnu.org>1999-03-24 16:35:34 -0700
commitf3692274cb0ccbd2930de5a9c10901e4da531e00 (patch)
tree479786bd47a0234a2321c522b6d2deb3274a26b5 /gcc/system.h
parentcc33944a7a4ad12e11ce9e278f028be948189575 (diff)
downloadgcc-f3692274cb0ccbd2930de5a9c10901e4da531e00.zip
gcc-f3692274cb0ccbd2930de5a9c10901e4da531e00.tar.gz
gcc-f3692274cb0ccbd2930de5a9c10901e4da531e00.tar.bz2
system.h (STDIN_FILENO): Provide default definition if one is not provided by the system header files.
* system.h (STDIN_FILENO): Provide default definition if one is not provided by the system header files. (STDOUT_FILENO, STDERR_FILENO): Likewise. * i386/xm-djgpp.h (COLLECT2_HOST_INITIALIZATION): New macro. * collect2.c (main): Use it. (pexecute_pid): New variable. Holds return value from call to pexecute. (collect2_execute): Rework to use pexecute instead of fork. (collect2_wait): Use pwait() instead of wait(). Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r25960
Diffstat (limited to 'gcc/system.h')
-rw-r--r--gcc/system.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h
index a744760..7d62ed9 100644
--- a/gcc/system.h
+++ b/gcc/system.h
@@ -477,6 +477,17 @@ extern void abort ();
#define O_NOCTTY 0
#endif
+/* Define well known filenos if the system does not define them. */
+#ifndef STDIN_FILENO
+# define STDIN_FILENO 0
+#endif
+#ifndef STDOUT_FILENO
+# define STDOUT_FILENO 1
+#endif
+#ifndef STDOUT_FILENO
+# define STDERR_FILENO 2
+#endif
+
/* Get libiberty declarations. */
#include "libiberty.h"