summaryrefslogtreecommitdiff
path: root/src/buildtool/system/system_command.hpp
diff options
context:
space:
mode:
authorPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-05 16:04:46 +0200
committerPaul Cristian Sarbu <paul.cristian.sarbu@huawei.com>2024-04-08 15:19:50 +0200
commit419a458ad9d4383eb47d51fe8e4408a0e240c2f1 (patch)
treec7c6546d287a7a2f9386141c3f07fffc5d848ed4 /src/buildtool/system/system_command.hpp
parente047c360dcc5cbdc01ee19a1b755bb70d883e41c (diff)
downloadjustbuild-419a458ad9d4383eb47d51fe8e4408a0e240c2f1.tar.gz
Consistently guard all POSIX C includes
Diffstat (limited to 'src/buildtool/system/system_command.hpp')
-rw-r--r--src/buildtool/system/system_command.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/system/system_command.hpp b/src/buildtool/system/system_command.hpp
index 7f16fc99..24931dc7 100644
--- a/src/buildtool/system/system_command.hpp
+++ b/src/buildtool/system/system_command.hpp
@@ -27,8 +27,12 @@
#include <utility> // std::move
#include <vector>
+#ifdef __unix__
#include <sys/wait.h>
#include <unistd.h>
+#else
+#error "Non-unix is not supported yet"
+#endif
#include "gsl/gsl"
#include "src/buildtool/file_system/file_system_manager.hpp"