[llvm] r295769 - Try to fix Android build.
Zachary Turner via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 21 13:13:10 PST 2017
Author: zturner
Date: Tue Feb 21 15:13:10 2017
New Revision: 295769
URL: http://llvm.org/viewvc/llvm-project?rev=295769&view=rev
Log:
Try to fix Android build.
Modified:
llvm/trunk/lib/Support/Unix/Path.inc
Modified: llvm/trunk/lib/Support/Unix/Path.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Path.inc?rev=295769&r1=295768&r2=295769&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc (original)
+++ llvm/trunk/lib/Support/Unix/Path.inc Tue Feb 21 15:13:10 2017
@@ -346,7 +346,9 @@ std::error_code remove(const Twine &path
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:
More information about the llvm-commits
mailing list