summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit3eb07a09635d149781f6db53c2417c477f1fefcb (patch)
treeddcfa9436065909466326d42074df869ba08e865 /llvm/lib
parent949abc327d4888464d8d09d71aa9c292d8486983 (diff)
downloadbcm5719-llvm-3eb07a09635d149781f6db53c2417c477f1fefcb.tar.gz
bcm5719-llvm-3eb07a09635d149781f6db53c2417c477f1fefcb.zip
Temporarily revert 185601 as it caused cmake build regressions.
llvm-svn: 185603
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Support/Unix/Path.inc10
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index c7cfec9ebcf..1cbdbf5429b 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud