summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/kwsysPlatformTestsCXX.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-10-08 17:26:08 (GMT)
committerBrad King <brad.king@kitware.com>2015-10-08 17:26:08 (GMT)
commit8083285d1bd5ecc31afa5fa689a9a4ca13ca8bb9 (patch)
tree195d5b69b94cad2843ea19b04c1733794b452b8c /Source/kwsys/kwsysPlatformTestsCXX.cxx
parent750391afc19577be693dbe6dfe760903d2e70fc8 (diff)
parent13c22d280e3b4d4f73e607617d18a3d55b509099 (diff)
downloadCMake-8083285d1bd5ecc31afa5fa689a9a4ca13ca8bb9.zip
CMake-8083285d1bd5ecc31afa5fa689a9a4ca13ca8bb9.tar.gz
CMake-8083285d1bd5ecc31afa5fa689a9a4ca13ca8bb9.tar.bz2
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/kwsysPlatformTestsCXX.cxx')
-rw-r--r--Source/kwsys/kwsysPlatformTestsCXX.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/kwsys/kwsysPlatformTestsCXX.cxx b/Source/kwsys/kwsysPlatformTestsCXX.cxx
index 94579b3..9626937 100644
--- a/Source/kwsys/kwsysPlatformTestsCXX.cxx
+++ b/Source/kwsys/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()