Ver código fonte

cmSystemTools: Remove unused include <fcntl.h>

We do not seem to need this header anymore, and including it on AIX
causes `#define open open64` which breaks `std::ifstream::open` calls.
Brad King 9 anos atrás
pai
commit
b13a74b35b
1 arquivos alterados com 1 adições e 2 exclusões
  1. 1 2
      Source/cmSystemTools.cxx

+ 1 - 2
Source/cmSystemTools.cxx

@@ -60,8 +60,7 @@
 #endif
 #endif
 
 
 #if defined(CMAKE_BUILD_WITH_CMAKE)
 #if defined(CMAKE_BUILD_WITH_CMAKE)
-#  include <fcntl.h>
-#  include "cmCryptoHash.h"
+# include "cmCryptoHash.h"
 #endif
 #endif
 
 
 #if defined(CMAKE_USE_ELF_PARSER)
 #if defined(CMAKE_USE_ELF_PARSER)