From fd475a8d275614953551f9f8867ad71266e41117 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 5 Mar 2017 01:28:44 +0300 Subject: Fix compilation on windows. --- src/fs/virtfs/virtfsdir.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/fs/virtfs/virtfsdir.cpp b/src/fs/virtfs/virtfsdir.cpp index 42342b37b..0158dec2a 100644 --- a/src/fs/virtfs/virtfsdir.cpp +++ b/src/fs/virtfs/virtfsdir.cpp @@ -194,6 +194,7 @@ namespace VirtFsDir const std::string file = next_file->d_name; if (file == "." || file == "..") continue; +#ifndef WIN32 if (mPermitLinks == false) { struct stat statbuf; @@ -203,6 +204,8 @@ namespace VirtFsDir continue; } } +#endif // WIN32 + bool found(false); FOR_EACH (StringVectCIter, itn, names) { @@ -243,12 +246,16 @@ namespace VirtFsDir name.c_str()); return false; } +#ifndef WIN32 if (mPermitLinks == false) return false; struct stat statbuf; return lstat(name.c_str(), &statbuf) == 0 && S_ISLNK(statbuf.st_mode) != 0; +#else + return false; +#endif // WIN32 } void freeList(VirtList *restrict const handle) -- cgit v1.2.3-70-g09d2