From e7c7d9b051520a87fc9898da909d9f96144004a9 Mon Sep 17 00:00:00 2001 From: Linus Nielsen Feltzing Date: Sat, 4 Feb 2006 20:35:46 +0000 Subject: Bah, O_BINARY is of course Win32 only git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8564 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/common/io.c | 4 ++++ 1 file changed, 4 insertions(+) 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, /* We have to create the dynamic link library file from ram so we could simulate the codec loading. */ +#ifdef WIN32 fd = open(path, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, S_IRWXU); +#else + fd = open(path, O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU); +#endif if (fd < 0) { DEBUGF("failed to open for write: %s\n", path); return NULL; -- cgit v1.2.3