Browse Source

Fixed libc build errors in mingw.

Mark Sibly 7 years ago
parent
commit
53b289df86
1 changed files with 4 additions and 3 deletions
  1. 4 3
      modules/libc/native/libc.h

+ 4 - 3
modules/libc/native/libc.h

@@ -16,18 +16,19 @@
 
 #include <windows.h>
 #include <wchar.h>
-//#include <winsock2.h>	//for struct timeval?!?
 
 #define PATH_MAX 260
 
+#if _MSC_VER
+typedef int mode_t;
+#endif
+
 struct dirent{
 	char *d_name;
 };
 	
 struct DIR;
 
-typedef int mode_t;
-
 typedef struct tm tm_t;
 
 typedef struct _stat stat_t;