aboutsummaryrefslogtreecommitdiff
path: root/gcc/protoize.c
diff options
context:
space:
mode:
authorMichael Bushnell <mib@gnu.org>1994-11-08 02:29:16 +0000
committerMichael Bushnell <mib@gnu.org>1994-11-08 02:29:16 +0000
commitf6eb850d30efcd0d06682bf5099d9b543a386e3b (patch)
tree254102350e588472c06031783e2a11cc4db829e1 /gcc/protoize.c
parent1dc8a823f9d3191869cf4e3d61ca6429ab177ef3 (diff)
downloadgcc-f6eb850d30efcd0d06682bf5099d9b543a386e3b.zip
gcc-f6eb850d30efcd0d06682bf5099d9b543a386e3b.tar.gz
gcc-f6eb850d30efcd0d06682bf5099d9b543a386e3b.tar.bz2
[!POSIX]: Only define O_RDONLY and O_WRONLY if they are not already
defined for us. From-SVN: r8404
Diffstat (limited to 'gcc/protoize.c')
-rw-r--r--gcc/protoize.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/protoize.c b/gcc/protoize.c
index 8e914af..f4c92f3 100644
--- a/gcc/protoize.c
+++ b/gcc/protoize.c
@@ -130,8 +130,13 @@ typedef char * const_pointer_type;
#define X_OK 1 /* Test for eXecute permission */
#define F_OK 0 /* Test for existence of File */
+#ifndef O_RDONLY
#define O_RDONLY 0
+#endif
+
+#ifndef O_WRONLY
#define O_WRONLY 1
+#endif
#ifndef WIFSIGNALED
#define WIFSIGNALED(S) (((S) & 0xff) != 0 && ((S) & 0xff) != 0x7f)