From 2333a31df5eb20db07818252774c3d943d1497d1 Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Thu, 4 Jul 2013 00:51:26 +0000 Subject: 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 --- lib/Support/Unix/Path.inc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib/Support') 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(); } -- cgit v1.1