diff options
author | Brad King <brad.king@kitware.com> | 2013-06-03 14:23:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-06-03 14:23:31 (GMT) |
commit | 884e3edeb13643826d82a78d283157843f95a2f3 (patch) | |
tree | 302f5981de6b123a3c1f564bb42cdcdf6824a6db /Source/kwsys/kwsysPlatformTestsCXX.cxx | |
parent | d114fc373c1499689265c6c12e95b86f2930b227 (diff) | |
parent | d66f6f36baca6d314f1f17e11d90d52b5c9d7ec2 (diff) | |
download | CMake-884e3edeb13643826d82a78d283157843f95a2f3.zip CMake-884e3edeb13643826d82a78d283157843f95a2f3.tar.gz CMake-884e3edeb13643826d82a78d283157843f95a2f3.tar.bz2 |
Merge branch 'upstream-kwsys' into update-kwsys
Diffstat (limited to 'Source/kwsys/kwsysPlatformTestsCXX.cxx')
-rw-r--r-- | Source/kwsys/kwsysPlatformTestsCXX.cxx | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Source/kwsys/kwsysPlatformTestsCXX.cxx b/Source/kwsys/kwsysPlatformTestsCXX.cxx index 48976c4..a7e3b50 100644 --- a/Source/kwsys/kwsysPlatformTestsCXX.cxx +++ b/Source/kwsys/kwsysPlatformTestsCXX.cxx @@ -494,6 +494,25 @@ int main() } #endif +#ifdef TEST_KWSYS_CXX_HAS_UTIMES +#include <sys/time.h> +int main() +{ + struct timeval* current_time = 0; + return utimes("/example", current_time); +} +#endif + +#ifdef TEST_KWSYS_CXX_HAS_UTIMENSAT +#include <fcntl.h> +#include <sys/stat.h> +int main() +{ + struct timespec times[2] = {{0,UTIME_OMIT},{0,UTIME_NOW}}; + return utimensat(AT_FDCWD, "/example", times, AT_SYMLINK_NOFOLLOW); +} +#endif + #ifdef TEST_KWSYS_CXX_TYPE_INFO /* Collect fundamental type information and save it to a CMake script. */ |