From aae576b4a0c98b5c328a33888ca37ddfa60ef503 Mon Sep 17 00:00:00 2001 From: auronandace Date: Tue, 5 May 2026 16:00:24 +0100 Subject: [PATCH] include fcntl in semaphore header to fix includes --- src/header/semaphore/cbindgen.toml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/header/semaphore/cbindgen.toml b/src/header/semaphore/cbindgen.toml index be8f845c58..c0024ed9ea 100644 --- a/src/header/semaphore/cbindgen.toml +++ b/src/header/semaphore/cbindgen.toml @@ -1,4 +1,8 @@ -sys_includes = [] +# TODO clean up namespace pollution from fcntl later +# +# fcntl.h brings in O_CREAT and O_EXCL +# fcntl.h brings in sys/stat.h which brings in sys/types.h which brings in clockid_t (needed for sem_clockwait) +sys_includes = ["fcntl.h"] include_guard = "_RELIBC_SEMAPHORE_H" after_includes = """ #include // for timespec