Skip to content

Commit 4ee70a0

Browse files
authored
Include sys/wait.h for WIF* macros (#6053)
This fixes build on FreeBSD. Not sure if preprocessor condition is 100% correct though.
1 parent 18583ca commit 4ee70a0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cli/cppcheckexecutor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@
6464
#include <windows.h>
6565
#endif
6666

67+
#if !defined(WIN32) && !defined(__MINGW32__)
68+
#include <sys/wait.h> // WIFEXITED and friends
69+
#endif
70+
6771
namespace {
6872
class CmdLineLoggerStd : public CmdLineLogger
6973
{

0 commit comments

Comments
 (0)