Skip to content

Commit

Permalink
Include sys/wait.h for WIF* macros
Browse files Browse the repository at this point in the history
This fixes build on FreeBSD
  • Loading branch information
AMDmi3 authored Feb 27, 2024
1 parent 86994c5 commit 5bd8ef3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cli/cppcheckexecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
#include <windows.h>
#endif

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

namespace {
class CmdLineLoggerStd : public CmdLineLogger
{
Expand Down

0 comments on commit 5bd8ef3

Please sign in to comment.