aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2014-03-24 17:37:26 +0800
committerAndrew Hsieh <andrewhsieh@google.com>2014-03-24 17:37:26 +0800
commitbc1ef4eea4d48d1ca62ece76b1587ea856f51a03 (patch)
tree07e878629d5509f6ff864da1becb4a3f2450dbbe
parent6bf46f579f8a936804a99aff5c382eda68a59673 (diff)
downloadllvm-bc1ef4eea4d48d1ca62ece76b1587ea856f51a03.tar.gz
Add DISABLE_FUTIMENS to guard the use of futimens
So $NDK/build/tools/build-llvm.sh can add -DDISABLE_FUTIMENS to remove dependencies of llvm binraries to futimens@GLIBC_2.6 doesn't exist in libc.so of some old linux systems Change-Id: I72bc05af16fd75d3d851e44489f32a21b9d65dd1
-rw-r--r--lib/Support/Unix/Path.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc
index c9dc8716714..20013ce8b42 100644
--- a/lib/Support/Unix/Path.inc
+++ b/lib/Support/Unix/Path.inc
@@ -524,7 +524,7 @@ error_code status(int FD, file_status &Result) {
}
error_code setLastModificationAndAccessTime(int FD, TimeValue Time) {
-#if defined(HAVE_FUTIMENS)
+#if defined(HAVE_FUTIMENS) && !defined(DISABLE_FUTIMENS)
timespec Times[2];
Times[0].tv_sec = Time.toPosixTime();
Times[0].tv_nsec = 0;