diff options
author | Alp Toker <alp@nuanti.com> | 2013-12-11 15:42:33 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2013-12-11 15:42:33 +0000 |
commit | 00a9489ff302c6c92689c96ebd7585a1a74edbea (patch) | |
tree | 9cdb2e7793fec05c26d05cbf37aa2dc944c36fe5 /include | |
parent | 3bf51cf30293272198515bfe315db1dd81d86e63 (diff) | |
download | llvm-00a9489ff302c6c92689c96ebd7585a1a74edbea.tar.gz llvm-00a9489ff302c6c92689c96ebd7585a1a74edbea.tar.bz2 llvm-00a9489ff302c6c92689c96ebd7585a1a74edbea.tar.xz |
Build fix for Android NDK which has neither futimes nor futimens
Based on a patch by Neil Henning!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197045 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index d301f842ea..bf2e514d40 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -545,6 +545,11 @@ inline error_code file_size(const Twine &Path, uint64_t &Result) { return error_code::success(); } +/// @brief Set the file modification and access time. +/// +/// @returns errc::success if the file times were successfully set, otherwise a +/// platform specific error_code or errc::not_supported on platforms +/// where the functionality isn't available. error_code setLastModificationAndAccessTime(int FD, TimeValue Time); /// @brief Is status available? |