Alternative macro for NAME_MAX on SunOs 11 (#3336)
Co-authored-by: vahtis <vahtis@iki.fi>
This commit is contained in:
parent
435cffa858
commit
2abe07f279
|
@ -181,6 +181,12 @@ bool FileLister::fileExists(const std::string &path)
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <cerrno>
|
#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,
|
static std::string addFiles2(std::map<std::string, std::size_t> &files,
|
||||||
const std::string &path,
|
const std::string &path,
|
||||||
|
|
Loading…
Reference in New Issue