diff options
| author | Zachary Turner <zturner@google.com> | 2017-02-21 21:13:10 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-02-21 21:13:10 +0000 |
| commit | 6bc2dac132771e42ff89ed0ec59a9777761843d3 (patch) | |
| tree | 9103257bf2d45573624360ac354968d9c5a05f5a /llvm/lib/Support/Unix | |
| parent | 392ed9d342229b95d77a5ec6310e10093f73e75c (diff) | |
| download | bcm5719-llvm-6bc2dac132771e42ff89ed0ec59a9777761843d3.tar.gz bcm5719-llvm-6bc2dac132771e42ff89ed0ec59a9777761843d3.zip | |
Try to fix Android build.
llvm-svn: 295769
Diffstat (limited to 'llvm/lib/Support/Unix')
| -rw-r--r-- | llvm/lib/Support/Unix/Path.inc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index 94cb6817e40..b0aab160787 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/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: |

