summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-06-30 18:57:04 +0000
committerAlp Toker <alp@nuanti.com>2014-06-30 18:57:04 +0000
commitb792a01e136887dee4151fc4ef45913f732dd047 (patch)
tree8a5a77ac09d784fe02e19eacab17c63f7ad824b5
parent4c8dfe4d0fbe07f9203b2ad4a7fad2c423d47c58 (diff)
downloadbcm5719-llvm-b792a01e136887dee4151fc4ef45913f732dd047.tar.gz
bcm5719-llvm-b792a01e136887dee4151fc4ef45913f732dd047.zip
Build fix for systems without futimes/futimens
Some versions of Android don't have futimes/futimens and this code wasn't updated during the recent errc refactoring. Patch by Luqman Aden! llvm-svn: 212055
-rw-r--r--llvm/include/llvm/Support/FileSystem.h4
-rw-r--r--llvm/lib/Support/Unix/Path.inc2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/Support/FileSystem.h b/llvm/include/llvm/Support/FileSystem.h
index e56e2b718a7..bb26f9a3fa6 100644
--- a/llvm/include/llvm/Support/FileSystem.h
+++ b/llvm/include/llvm/Support/FileSystem.h
@@ -510,8 +510,8 @@ inline std::error_code file_size(const Twine &Path, uint64_t &Result) {
/// @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.
+/// platform specific error_code or errc::function_not_supported on
+/// platforms where the functionality isn't available.
std::error_code setLastModificationAndAccessTime(int FD, TimeValue Time);
/// @brief Is status available?
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index c9fae429868..623547a95ed 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -468,7 +468,7 @@ std::error_code setLastModificationAndAccessTime(int FD, TimeValue Time) {
return std::error_code();
#else
#warning Missing futimes() and futimens()
- return make_error_code(errc::not_supported);
+ return make_error_code(errc::function_not_supported);
#endif
}
OpenPOWER on IntegriCloud