diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-05 16:04:46 +0200 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2024-04-08 15:19:50 +0200 |
commit | 419a458ad9d4383eb47d51fe8e4408a0e240c2f1 (patch) | |
tree | c7c6546d287a7a2f9386141c3f07fffc5d848ed4 /src/buildtool/system/system.cpp | |
parent | e047c360dcc5cbdc01ee19a1b755bb70d883e41c (diff) | |
download | justbuild-419a458ad9d4383eb47d51fe8e4408a0e240c2f1.tar.gz |
Consistently guard all POSIX C includes
Diffstat (limited to 'src/buildtool/system/system.cpp')
-rw-r--r-- | src/buildtool/system/system.cpp | 4 |
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 |