Skip to content

Commit

Permalink
Fix build on Ubuntu WSL
Browse files Browse the repository at this point in the history
Includes <sys/wait.h> to define waitpid.
  • Loading branch information
MineRobber9000 committed Feb 11, 2024
1 parent cc3e364 commit 1610fa0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ set(MINISCRIPT_HEADERS
set(MINICMD_HEADERS
MiniScript-cpp/src/DateTimeUtils.h
MiniScript-cpp/src/OstreamSupport.h
MiniScript-cpp/src/ShellExec.h
MiniScript-cpp/src/ShellIntrinsics.h
MiniScript-cpp/src/editline/editline.h
MiniScript-cpp/src/editline/unix.h
Expand Down Expand Up @@ -93,6 +94,7 @@ add_executable(minicmd
MiniScript-cpp/src/DateTimeUtils.cpp
MiniScript-cpp/src/OstreamSupport.cpp
MiniScript-cpp/src/ShellIntrinsics.cpp
MiniScript-cpp/src/ShellExec.cpp
MiniScript-cpp/src/whereami/whereami.c
${EDITLINE_SRC}
${MINICMD_HEADERS}
Expand Down
2 changes: 1 addition & 1 deletion MiniScript-cpp/src/ShellExec.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#include <codecvt>
#else
#include <unistd.h> // for read()

#include <sys/wait.h> // for waitpid()
#endif


Expand Down

0 comments on commit 1610fa0

Please sign in to comment.