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:
keinflue 2021-05-03 07:39:33 +00:00 committed by GitHub
parent 1bce1cf83c
commit 6b8029633f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -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,

View File

@ -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>

View File

@ -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>