Skip to content

Commit 6b80296

Browse files
authored
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 <>
1 parent 1bce1cf commit 6b80296

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

cli/filelister.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ bool FileLister::fileExists(const std::string &path)
179179

180180
#include <dirent.h>
181181
#include <sys/stat.h>
182-
#include <sys/errno.h>
182+
#include <cerrno>
183183

184184

185185
static std::string addFiles2(std::map<std::string, std::size_t> &files,

test/cfg/posix.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
#include <dirent.h>
1313
#include <sys/mman.h>
1414
#include <sys/socket.h>
15+
#include <sys/time.h>
16+
#include <sys/types.h>
1517
#include <dlfcn.h>
1618
#include <fcntl.h>
1719
// unavailable on some linux systems #include <ndbm.h>

test/cfg/std.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#include <cstdlib>
1313
#include <ctime>
1414
#include <cctype>
15+
#include <clocale>
1516
#include <complex>
1617
#include <cassert>
1718
#include <cwchar>

0 commit comments

Comments
 (0)