diff options
-rw-r--r-- | uisimulator/common/io.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c index 5db5f52880..53e2022062 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c | |||
@@ -40,6 +40,13 @@ | |||
40 | #include "dir-win32.h" | 40 | #include "dir-win32.h" |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | #if defined(WIN32) && defined(__MINGW32__) | ||
44 | /* when building with cross-compiled mingw on Linux for win32, these protos | ||
45 | are missing */ | ||
46 | int _commit(int fd); | ||
47 | int snprintf (char *buf, size_t size, const char *fmt, ...); | ||
48 | #endif | ||
49 | |||
43 | #define MAX_PATH 260 | 50 | #define MAX_PATH 260 |
44 | 51 | ||
45 | #include <fcntl.h> | 52 | #include <fcntl.h> |