From 2abe07f279f0f193e528475d045c32069999c005 Mon Sep 17 00:00:00 2001 From: vahtis Date: Wed, 14 Jul 2021 21:50:14 +0300 Subject: [PATCH] Alternative macro for NAME_MAX on SunOs 11 (#3336) Co-authored-by: vahtis --- cli/filelister.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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,