diff --git a/cli/filelister.cpp b/cli/filelister.cpp index 67a0430b9..82dc0f84a 100644 --- a/cli/filelister.cpp +++ b/cli/filelister.cpp @@ -181,6 +181,12 @@ bool FileLister::fileExists(const std::string &path) #include #include +#ifndef NAME_MAX +#ifdef MAXNAMLEN +#define NAME_MAX MAXNAMLEN +#endif +#endif + static std::string addFiles2(std::map &files, const std::string &path,