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 5db5f52..53e2022 100644 --- a/uisimulator/common/io.c +++ b/uisimulator/common/io.c @@ -40,6 +40,13 @@ #include "dir-win32.h" #endif +#if defined(WIN32) && defined(__MINGW32__) +/* when building with cross-compiled mingw on Linux for win32, these protos + are missing */ +int _commit(int fd); +int snprintf (char *buf, size_t size, const char *fmt, ...); +#endif + #define MAX_PATH 260 #include <fcntl.h> |