Mark Sibly 8 years ago
parent
commit
ab5d3aac9a
1 changed files with 3 additions and 0 deletions
  1. 3 0
      modules/libc/native/libc.h

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

@@ -10,6 +10,7 @@
 #include <sys/types.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/stat.h>
 #include <time.h>
 #include <time.h>
+#include <limits.h>
 
 
 #if _MSC_VER
 #if _MSC_VER
 #include <direct.h>
 #include <direct.h>
@@ -25,6 +26,8 @@ typedef int mode_t;
 #if _WIN32
 #if _WIN32
 #define PATH_MAX 260
 #define PATH_MAX 260
 #define realpath(X,Y) _fullpath( (Y),(X),PATH_MAX )
 #define realpath(X,Y) _fullpath( (Y),(X),PATH_MAX )
+#else
+#include <limits.h>
 #endif
 #endif
 
 
 typedef struct tm tm_t;
 typedef struct tm tm_t;