Przeglądaj źródła

ERR: Properly handle mode_t on borland

Andy Cedilnik 22 lat temu
rodzic
commit
fb228e73c8
2 zmienionych plików z 2 dodań i 1 usunięć
  1. 1 1
      Source/cmStandardIncludes.h
  2. 1 0
      Source/cmSystemTools.h

+ 1 - 1
Source/cmStandardIncludes.h

@@ -118,7 +118,7 @@ extern int putenv (char *__string) __THROW;
 # endif
 #endif
 
-#if defined( _MSC_VER ) || defined( __BORLANDC__ )
+#if defined( _MSC_VER )
 typedef unsigned short mode_t;
 #endif
 

+ 1 - 0
Source/cmSystemTools.h

@@ -20,6 +20,7 @@
 #include "cmStandardIncludes.h"
 
 #include <cmsys/SystemTools.hxx>
+#include <sys/types.h>
 
 /** \class cmSystemTools
  * \brief A collection of useful functions for CMake.