Alternative macro for NAME_MAX on SunOs 11 (#3336)

Co-authored-by: vahtis <vahtis@iki.fi>
This commit is contained in:
vahtis 2021-07-14 21:50:14 +03:00 committed by GitHub
parent 435cffa858
commit 2abe07f279
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -181,6 +181,12 @@ bool FileLister::fileExists(const std::string &path)
#include <sys/stat.h>
#include <cerrno>
#ifndef NAME_MAX
#ifdef MAXNAMLEN
#define NAME_MAX MAXNAMLEN
#endif
#endif
static std::string addFiles2(std::map<std::string, std::size_t> &files,
const std::string &path,