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/utils/cpp/file_locking.cpp | |
parent | e047c360dcc5cbdc01ee19a1b755bb70d883e41c (diff) | |
download | justbuild-419a458ad9d4383eb47d51fe8e4408a0e240c2f1.tar.gz |
Consistently guard all POSIX C includes
Diffstat (limited to 'src/utils/cpp/file_locking.cpp')
-rw-r--r-- | src/utils/cpp/file_locking.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/cpp/file_locking.cpp b/src/utils/cpp/file_locking.cpp index f4b6eb2c..2757dc04 100644 --- a/src/utils/cpp/file_locking.cpp +++ b/src/utils/cpp/file_locking.cpp @@ -14,7 +14,11 @@ #include "src/utils/cpp/file_locking.hpp" +#ifdef __unix__ #include <sys/file.h> +#else +#error "Non-unix is not supported yet" +#endif #include "src/buildtool/file_system/file_system_manager.hpp" #include "src/buildtool/logging/log_level.hpp" |