Skip to content

Commit

Permalink
Include sys/wait.h for WIF* macros (#6053)
Browse files Browse the repository at this point in the history
This fixes build on FreeBSD. Not sure if preprocessor condition is 100%
correct though.
  • Loading branch information
AMDmi3 committed Feb 27, 2024
1 parent 18583ca commit 4ee70a0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/cppcheckexecutor.cpp
Expand Up @@ -64,6 +64,10 @@
#include <windows.h>
#endif

#if !defined(WIN32) && !defined(__MINGW32__)
#include <sys/wait.h> // WIFEXITED and friends
#endif

namespace {
class CmdLineLoggerStd : public CmdLineLogger
{
Expand Down

0 comments on commit 4ee70a0

Please sign in to comment.