From 83fbeaf3ba095f8135c89d4122d3658c47517a8f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 21 Feb 2017 21:13:10 +0000 Subject: [PATCH] Try to fix Android build. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295769 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Path.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Support/Unix/Path.inc b/lib/Support/Unix/Path.inc index 94cb6817e40..b0aab160787 100644 --- a/lib/Support/Unix/Path.inc +++ b/lib/Support/Unix/Path.inc @@ -346,7 +346,9 @@ std::error_code remove(const Twine &path, bool IgnoreNonExisting) { static bool is_local_impl(struct STATVFS &Vfs) { #if defined(__linux__) - constexpr uint32_t CIFS_MAGIC_NUMBER = 0xFF534D42; +#ifndef CIFS_MAGIC_NUMBER +#define CIFS_MAGIC_NUMBER 0xFF534D42 +#endif switch ((uint32_t)Vfs.f_type) { case NFS_SUPER_MAGIC: case SMB_SUPER_MAGIC: -- 2.11.0