summaryrefslogtreecommitdiff
path: root/lib/Support/Unix
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/Unix
parentd1280c194b388663044f002a34aa9cc00c4feb97 (diff)
downloadllvm-2333a31df5eb20db07818252774c3d943d1497d1.tar.gz
llvm-2333a31df5eb20db07818252774c3d943d1497d1.tar.bz2
llvm-2333a31df5eb20db07818252774c3d943d1497d1.tar.xz
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/Unix')
-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 c7cfec9ebc..1cbdbf5429 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();
}