aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Support
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2013-07-04 00:51:26 +0000
committerEric Christopher <echristo@gmail.com>2013-07-04 00:51:26 +0000
commit2333a31df5eb20db07818252774c3d943d1497d1 (patch)
treed10880574ee192b55521a558b84b33c9d86fe2f0 /lib/Support
parentd1280c194b388663044f002a34aa9cc00c4feb97 (diff)
downloadexternal_llvm-2333a31df5eb20db07818252774c3d943d1497d1.zip
external_llvm-2333a31df5eb20db07818252774c3d943d1497d1.tar.gz
external_llvm-2333a31df5eb20db07818252774c3d943d1497d1.tar.bz2
Temporarily revert 185601 as it caused cmake build regressions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support')
-rw-r--r--lib/Support/Unix/Path.inc10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index c7cfec9..1cbdbf5 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -626,21 +626,11 @@ error_code permissions(const Twine &path, perms prms) {
}
error_code setLastModificationAndAccessTime(int FD, TimeValue Time) {
-#if HAVE_FUTIMENS
- timespec Times[2];
- Times[0].tv_sec = Time.toPosixTime();
- Times[0].tv_nsec = 0;
- Times[1] = Times[0];
- if (::futimens(FD, Times))
-#elif HAVE_FUTIMES
timeval Times[2];
Times[0].tv_sec = Time.toPosixTime();
Times[0].tv_usec = 0;
Times[1] = Times[0];
if (::futimes(FD, Times))
-#else
-#error Missing futimes() and futimens()
-#endif
return error_code(errno, system_category());
return error_code::success();
}