OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
460a73d
)
[!POSIX]: Only define O_RDONLY and O_WRONLY if they are not already
author
mib
<mib@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 8 Nov 1994 02:29:16 +0000
(
02:29
+0000)
committer
mib
<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
patch
|
blob
|
history
diff --git
a/gcc/protoize.c
b/gcc/protoize.c
index
8e914af
..
f4c92f3
100644
(file)
--- 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)