From 9dd41b283ce5b90cf0c08f13e01c04de5ab3f03a Mon Sep 17 00:00:00 2001 From: auronandace Date: Sat, 16 May 2026 17:24:51 +0100 Subject: [PATCH] remove sys_types from sys_stat header --- src/header/sys_stat/cbindgen.toml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/header/sys_stat/cbindgen.toml b/src/header/sys_stat/cbindgen.toml index 61ca0da6b4..f6d3889d90 100644 --- a/src/header/sys_stat/cbindgen.toml +++ b/src/header/sys_stat/cbindgen.toml @@ -4,9 +4,19 @@ # - "The header shall define the blkcnt_t, blksize_t, dev_t, ino_t, mode_t, nlink_t, uid_t, gid_t, off_t, and time_t types as described in ." # - "The header shall define the timespec structure as described in . Times shall be given in seconds since the Epoch." # - "Inclusion of the header may make visible all symbols from the header." -sys_includes = ["sys/types.h"] +# +# bits/timespec.h brings in time_t +sys_includes = [] include_guard = "_RELIBC_SYS_STAT_H" after_includes = """ +#include // for blkcnt_t and blksize_t from sys/types.h +#include // for dev_t from sys/types.h +#include // for gid_t from sys/types.h +#include // for ino_t from sys/types.h +#include // for mode_t from sys/types.h +#include // for nlink_t from sys/types.h +#include // for off_t from sys/types.h +#include // for uid_t from sys/types.h #include // for timespec from time.h #define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)