From ae60874b7b4dc59a6349041a929dae12ec19b4c1 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Tue, 27 Feb 2024 21:45:39 +0300 Subject: [PATCH] Include sys/wait.h for WIF* macros This fixes build on FreeBSD --- cli/cppcheckexecutor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/cppcheckexecutor.cpp b/cli/cppcheckexecutor.cpp index 1d9f5b4972e..2eb30441894 100644 --- a/cli/cppcheckexecutor.cpp +++ b/cli/cppcheckexecutor.cpp @@ -64,6 +64,10 @@ #include #endif +#if !defined(WIN32) && !defined(__MINGW32__) +#include // WIFEXITED and friends +#endif + namespace { class CmdLineLoggerStd : public CmdLineLogger {