summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-05-05 10:32:59 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-05-05 10:32:59 +0000
commit83e92b86fc02f8830008cd098d53169c111fdce6 (patch)
tree0eafc7839de6a33f91acb2d444257286d1953d1e /firmware
parent0343834852edfdcbdfc8fc44c16e16a3fe525382 (diff)
downloadrockbox-83e92b86fc02f8830008cd098d53169c111fdce6.zip
rockbox-83e92b86fc02f8830008cd098d53169c111fdce6.tar.gz
rockbox-83e92b86fc02f8830008cd098d53169c111fdce6.tar.bz2
rockbox-83e92b86fc02f8830008cd098d53169c111fdce6.tar.xz
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
Diffstat (limited to 'firmware')
-rw-r--r--firmware/common/file.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/common/file.h b/firmware/common/file.h
index 3233b40..58fb22d 100644
--- a/firmware/common/file.h
+++ b/firmware/common/file.h
@@ -24,9 +24,11 @@
#define SEEK_CUR 1
#define SEEK_END 2
+#ifndef O_RDONLY
#define O_RDONLY 0
#define O_WRONLY 1
#define O_RDWR 2
+#endif
#ifndef SIMULATOR
extern int open(char* pathname, int flags);