Try to fix Android build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295769 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Zachary Turner 2017-02-21 21:13:10 +00:00
parent 167b16d8fb
commit 83fbeaf3ba

View File

@ -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: