Try to fix Android build.

llvm-svn: 295769
This commit is contained in:
Zachary Turner 2017-02-21 21:13:10 +00:00
parent 392ed9d342
commit 6bc2dac132
1 changed files with 3 additions and 1 deletions

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: