diff options
author | David Cole <david.cole@kitware.com> | 2012-12-05 20:16:22 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-12-05 20:16:22 (GMT) |
commit | e28ce2483dbdc620aa92e2ba0d86e8923dcdb296 (patch) | |
tree | 91732c379159c707b9544550c05b8961734467ab /Source/cmTimestamp.cxx | |
parent | 354ecc1e1f28b9f2412fa015064353c6e20cfe92 (diff) | |
download | CMake-e28ce2483dbdc620aa92e2ba0d86e8923dcdb296.zip CMake-e28ce2483dbdc620aa92e2ba0d86e8923dcdb296.tar.gz CMake-e28ce2483dbdc620aa92e2ba0d86e8923dcdb296.tar.bz2 |
CMake: Fix dashboard test failure
Eliminate the platform difference in calling stat. We call stat normally
in other places in the CMake code base just fine. Works everywhere we
work. Will hopefully also fix the Borland Continuous dashboard failure
that is occurring with respect to correctly measuring the modification
time of a freshly generated file.
Diffstat (limited to 'Source/cmTimestamp.cxx')
-rw-r--r-- | Source/cmTimestamp.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Source/cmTimestamp.cxx b/Source/cmTimestamp.cxx index c3df495..22bb4b7 100644 --- a/Source/cmTimestamp.cxx +++ b/Source/cmTimestamp.cxx @@ -33,16 +33,10 @@ std::string cmTimestamp::CurrentTime( std::string cmTimestamp::FileModificationTime(const char* path, const std::string& formatString, bool utcFlag) { -#ifdef _WIN32 - #define STAT _stat -#else - #define STAT stat -#endif - - struct STAT info; + struct stat info; std::memset(&info, 0, sizeof(info)); - if(STAT(path, &info) != 0) + if(stat(path, &info) != 0) { return std::string(); } |