Fix build warnings and checkcfg errors with musl and libc++. (#3244)
* Fix musl include warning. * Fix test/cfg errors with musl/libc++. * Use correct C++ include for PR #3244 Co-authored-by: keinflue <>
This commit is contained in:
parent
1bce1cf83c
commit
6b8029633f
|
@ -179,7 +179,7 @@ bool FileLister::fileExists(const std::string &path)
|
||||||
|
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <sys/errno.h>
|
#include <cerrno>
|
||||||
|
|
||||||
|
|
||||||
static std::string addFiles2(std::map<std::string, std::size_t> &files,
|
static std::string addFiles2(std::map<std::string, std::size_t> &files,
|
||||||
|
|
|
@ -12,6 +12,8 @@
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <sys/time.h>
|
||||||
|
#include <sys/types.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
// unavailable on some linux systems #include <ndbm.h>
|
// unavailable on some linux systems #include <ndbm.h>
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <cctype>
|
#include <cctype>
|
||||||
|
#include <clocale>
|
||||||
#include <complex>
|
#include <complex>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
#include <cwchar>
|
#include <cwchar>
|
||||||
|
|
Loading…
Reference in New Issue