From 933190e37c8be65117b4b94bbc710875cb3e039f Mon Sep 17 00:00:00 2001 From: auronandace Date: Fri, 15 May 2026 14:58:20 +0100 Subject: [PATCH] remove sys_types from time header includes --- src/header/time/cbindgen.toml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/header/time/cbindgen.toml b/src/header/time/cbindgen.toml index b223e844b8..e120841100 100644 --- a/src/header/time/cbindgen.toml +++ b/src/header/time/cbindgen.toml @@ -9,16 +9,22 @@ # - "NULL As described in ." # - "Inclusion of the header may make visible all symbols from the header." # +# stddef.h brings in size_t and NULL +# bits/timespec.h brings in time_t # features.h included for deprecated annotations -sys_includes = ["sys/types.h", "stddef.h", "features.h"] +sys_includes = ["stddef.h", "features.h"] include_guard = "_RELIBC_TIME_H" language = "C" style = "Tag" no_includes = true cpp_compat = true after_includes = """ -#include // for timespec -#include // for locale_t from locale.h +#include // for clock_t from sys/types.h +#include // for clockid_t from sys/types.h +#include // for pid_t from sys/types.h +#include // for timer_t from sys/types.h +#include // for timespec +#include // for locale_t from locale.h struct sigevent; """