Sfoglia il codice sorgente

ERR: Fix Windows build

Andy Cedilnik 21 anni fa
parent
commit
70c973ba10
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      Source/kwsys/SystemTools.hxx.in

+ 4 - 0
Source/kwsys/SystemTools.hxx.in

@@ -22,6 +22,10 @@
 
 #include <sys/types.h>
 
+#if defined( _MSC_VER )
+typedef unsigned short mode_t;
+#endif
+
 /* Define these macros temporarily to keep the code readable.  */
 #if !defined (KWSYS_NAMESPACE) && !@KWSYS_NAMESPACE@_NAME_IS_KWSYS
 # define kwsys_stl @KWSYS_NAMESPACE@_stl