diff options
author | Brad King <brad.king@kitware.com> | 2016-08-04 13:56:44 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-08-04 13:56:44 (GMT) |
commit | ac7c12eced7ab3ba6d70a2c6cb95bb0e6ebbe024 (patch) | |
tree | 313ad18bbae72a1ea9a7147664f8278a0d7a9d54 | |
parent | 85d966dcd7a29a17e42fde7b1c109e642f063d82 (diff) | |
parent | b602cb85c90bba26bff04d570bf108658016cf07 (diff) | |
download | CMake-ac7c12eced7ab3ba6d70a2c6cb95bb0e6ebbe024.zip CMake-ac7c12eced7ab3ba6d70a2c6cb95bb0e6ebbe024.tar.gz CMake-ac7c12eced7ab3ba6d70a2c6cb95bb0e6ebbe024.tar.bz2 |
Merge topic 'update-kwsys'
b602cb85 Merge branch 'upstream-KWSys' into update-kwsys
3e6ec47c KWSys 2016-08-02 (3f55579d)
-rw-r--r-- | Source/kwsys/SystemInformation.cxx | 15 | ||||
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 5 |
2 files changed, 8 insertions, 12 deletions
diff --git a/Source/kwsys/SystemInformation.cxx b/Source/kwsys/SystemInformation.cxx index 81fb2f9..56a635a 100644 --- a/Source/kwsys/SystemInformation.cxx +++ b/Source/kwsys/SystemInformation.cxx @@ -79,9 +79,9 @@ typedef int siginfo_t; # undef _WIN32 #endif -#ifdef __FreeBSD__ +#if defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__DragonFly__) +# include <sys/param.h> # include <sys/sysctl.h> -# include <fenv.h> # include <sys/socket.h> # include <netdb.h> # include <netinet/in.h> @@ -91,19 +91,10 @@ typedef int siginfo_t; # endif #endif -#if defined(__OpenBSD__) || defined(__NetBSD__) -# include <sys/param.h> -# include <sys/sysctl.h> -#endif - #if defined(KWSYS_SYS_HAS_MACHINE_CPU_H) # include <machine/cpu.h> #endif -#if defined(__DragonFly__) -# include <sys/sysctl.h> -#endif - #ifdef __APPLE__ # include <sys/sysctl.h> # include <mach/vm_statistics.h> @@ -123,7 +114,7 @@ typedef int siginfo_t; # endif #endif -#ifdef __linux +#if defined(__linux) || defined (__sun) || defined(_SCO_DS) # include <fenv.h> # include <sys/socket.h> # include <netdb.h> diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index 9b56db0..d479ee1 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -1321,8 +1321,13 @@ bool SystemTools::FileExists(const std::string& filename) SystemTools::ConvertToWindowsExtendedPath(filename).c_str()) != INVALID_FILE_ATTRIBUTES); #else +// SCO OpenServer 5.0.7/3.2's command has 711 permission. +#if defined(_SCO_DS) + return access(filename.c_str(), F_OK) == 0; +#else return access(filename.c_str(), R_OK) == 0; #endif +#endif } //---------------------------------------------------------------------------- |