forked from OSchip/llvm-project
parent
392ed9d342
commit
6bc2dac132
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue