include fcntl in semaphore header to fix includes

This commit is contained in:
auronandace
2026-05-05 16:00:24 +01:00
parent ad4fa52f96
commit aae576b4a0
+5 -1
View File
@@ -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 <bits/timespec.h> // for timespec