OSDN Git Service

[!POSIX]: Only define O_RDONLY and O_WRONLY if they are not already
authormib <mib@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 1994 02:29:16 +0000 (02:29 +0000)
committermib <mib@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 1994 02:29:16 +0000 (02:29 +0000)
defined for us.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8404 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/protoize.c

index 8e914af..f4c92f3 100644 (file)
@@ -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)