Skip to content

Commit

Permalink
Fix missing includes (#1517)
Browse files Browse the repository at this point in the history
WIFEXITED requires <sys/wait.h> header. On some platforms, the transitive includes have this symbol, but not all.
  • Loading branch information
netheril96 authored Oct 21, 2024
1 parent ad7b71c commit 39396a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vcpkg-test/system.process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

#include <vcpkg/base/system.process.h>

#ifndef _WIN32
#include <sys/wait.h>
#endif

using namespace vcpkg;

TEST_CASE ("captures-output", "[system.process]")
Expand Down

0 comments on commit 39396a7

Please sign in to comment.