diff options
author | KWSys Robot <kwrobot@kitware.com> | 2015-10-06 14:29:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-10-08 17:26:04 (GMT) |
commit | 13c22d280e3b4d4f73e607617d18a3d55b509099 (patch) | |
tree | 3967f5a460472d7e70562a7516ff4df9a888980e /kwsysPlatformTestsCXX.cxx | |
parent | bca73252130b7f60fc12b7bcbbc95a3153047bd3 (diff) | |
download | CMake-13c22d280e3b4d4f73e607617d18a3d55b509099.zip CMake-13c22d280e3b4d4f73e607617d18a3d55b509099.tar.gz CMake-13c22d280e3b4d4f73e607617d18a3d55b509099.tar.bz2 |
KWSys 2015-10-06 (ed82989c)
Extract upstream KWSys using the following shell commands.
$ git archive --prefix=upstream-kwsys/ ed82989c | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' d79801bb..ed82989c
Brad King (3):
9baab632 SystemTools: Keep stat st_mtim field existence private
39475e20 SystemTools: Refactor utimes invocation
ed82989c SystemTools: Implement nanosecond file times on OS X
Diffstat (limited to 'kwsysPlatformTestsCXX.cxx')
-rw-r--r-- | kwsysPlatformTestsCXX.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/kwsysPlatformTestsCXX.cxx b/kwsysPlatformTestsCXX.cxx index 94579b3..9626937 100644 --- a/kwsysPlatformTestsCXX.cxx +++ b/kwsysPlatformTestsCXX.cxx @@ -32,7 +32,7 @@ int main() } #endif -#ifdef TEST_KWSYS_STAT_HAS_ST_MTIM +#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIM #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> @@ -45,6 +45,19 @@ int main() } #endif +#ifdef TEST_KWSYS_CXX_STAT_HAS_ST_MTIMESPEC +#include <sys/types.h> +#include <sys/stat.h> +#include <unistd.h> +int main() +{ + struct stat stat1; + (void)stat1.st_mtimespec.tv_sec; + (void)stat1.st_mtimespec.tv_nsec; + return 0; +} +#endif + #ifdef TEST_KWSYS_CXX_SAME_LONG_AND___INT64 void function(long**) {} int main() |