summaryrefslogtreecommitdiff
path: root/uisimulator/common
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/common')
-rw-r--r--uisimulator/common/file.h5
-rw-r--r--uisimulator/common/io.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/uisimulator/common/file.h b/uisimulator/common/file.h
index 8d91b61831..0e50031556 100644
--- a/uisimulator/common/file.h
+++ b/uisimulator/common/file.h
@@ -32,6 +32,11 @@
32#ifdef WIN32 32#ifdef WIN32
33#ifndef _commit 33#ifndef _commit
34extern int _commit( int handle ); 34extern int _commit( int handle );
35
36#ifdef _MSC_VER
37typedef unsigned int mode_t;
38#endif
39
35#endif 40#endif
36#endif 41#endif
37 42
diff --git a/uisimulator/common/io.c b/uisimulator/common/io.c
index 745e417fa6..e321c1adcc 100644
--- a/uisimulator/common/io.c
+++ b/uisimulator/common/io.c
@@ -27,8 +27,13 @@
27#elif !defined(WIN32) 27#elif !defined(WIN32)
28#include <sys/vfs.h> 28#include <sys/vfs.h>
29#endif 29#endif
30
31#ifndef _MSC_VER
30#include <dirent.h> 32#include <dirent.h>
31#include <unistd.h> 33#include <unistd.h>
34#else
35#include "dir-win32.h"
36#endif
32 37
33#include <fcntl.h> 38#include <fcntl.h>
34#include "debug.h" 39#include "debug.h"