summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-02-04 20:35:46 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-02-04 20:35:46 +0000
commite7c7d9b051520a87fc9898da909d9f96144004a9 (patch)
tree116a75858b1fb49e70728d7f860fa678a6685f0b /uisimulator
parent8599b071139303eb9b994b3b6450aa3de885ecc7 (diff)
downloadrockbox-e7c7d9b051520a87fc9898da909d9f96144004a9.tar.gz
rockbox-e7c7d9b051520a87fc9898da909d9f96144004a9.zip
Bah, O_BINARY is of course Win32 only
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8564 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/io.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 127e8e3e2a..f44a69bc69 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -323,7 +323,11 @@ void *sim_codec_load_ram(char* codecptr, int size,
323 /* We have to create the dynamic link library file from ram 323 /* We have to create the dynamic link library file from ram
324 so we could simulate the codec loading. */ 324 so we could simulate the codec loading. */
325 325
326#ifdef WIN32
326 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRWXU); 327 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRWXU);
328#else
329 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
330#endif
327 if (fd < 0) { 331 if (fd < 0) {
328 DEBUGF("failed to open for write: %s\n", path); 332 DEBUGF("failed to open for write: %s\n", path);
329 return NULL; 333 return NULL;