summaryrefslogtreecommitdiff
path: root/src/buildtool/system/system.cpp
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.cpp
parente047c360dcc5cbdc01ee19a1b755bb70d883e41c (diff)
downloadjustbuild-419a458ad9d4383eb47d51fe8e4408a0e240c2f1.tar.gz
Consistently guard all POSIX C includes
Diffstat (limited to 'src/buildtool/system/system.cpp')
-rw-r--r--src/buildtool/system/system.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildtool/system/system.cpp b/src/buildtool/system/system.cpp
index c84f34cf..228c7806 100644
--- a/src/buildtool/system/system.cpp
+++ b/src/buildtool/system/system.cpp
@@ -18,7 +18,11 @@
#include <cstdlib>
#include <string>
+#ifdef __unix__
#include <unistd.h>
+#else
+#error "Non-unix is not supported yet"
+#endif
void System::ExitWithoutCleanup(int exit_code) {
#ifdef VALGRIND_BUILD