From f6eb850d30efcd0d06682bf5099d9b543a386e3b Mon Sep 17 00:00:00 2001 From: Michael Bushnell Date: Tue, 8 Nov 1994 02:29:16 +0000 Subject: [PATCH] [!POSIX]: Only define O_RDONLY and O_WRONLY if they are not already defined for us. From-SVN: r8404 --- gcc/protoize.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/protoize.c b/gcc/protoize.c index 8e914af9268..f4c92f34546 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) -- 2.30.2