forked from len0rd/rockbox
minor protection to not re-define O_RDONLY if it is already defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@432 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
0343834852
commit
83e92b86fc
1 changed files with 2 additions and 0 deletions
|
|
@ -24,9 +24,11 @@
|
||||||
#define SEEK_CUR 1
|
#define SEEK_CUR 1
|
||||||
#define SEEK_END 2
|
#define SEEK_END 2
|
||||||
|
|
||||||
|
#ifndef O_RDONLY
|
||||||
#define O_RDONLY 0
|
#define O_RDONLY 0
|
||||||
#define O_WRONLY 1
|
#define O_WRONLY 1
|
||||||
#define O_RDWR 2
|
#define O_RDWR 2
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SIMULATOR
|
#ifndef SIMULATOR
|
||||||
extern int open(char* pathname, int flags);
|
extern int open(char* pathname, int flags);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue