From c75654bcae9eb3df8afb795c4ab14e8699dd1835 Mon Sep 17 00:00:00 2001 From: auronandace Date: Mon, 11 May 2026 14:38:51 +0100 Subject: [PATCH] remove sys_types from sys_time header --- src/header/sys_time/cbindgen.toml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/header/sys_time/cbindgen.toml b/src/header/sys_time/cbindgen.toml index 61012686ff..a42ba5956c 100644 --- a/src/header/sys_time/cbindgen.toml +++ b/src/header/sys_time/cbindgen.toml @@ -1,9 +1,12 @@ +# sys/select brings in bits/timespec.h +# bits/timespec.h brings in time_t +# sys/select brings in bits/timeval.h +# bits/timeval.h brings in time_t and suseconds_t # features.h needed for #[deprecated] annotations -sys_includes = ["features.h", "sys/types.h", "sys/select.h"] +sys_includes = ["sys/select.h", "features.h"] include_guard = "_RELIBC_SYS_TIME_H" language = "C" after_includes = """ -#include // for timespec #define timeradd(x,y,res) (void) (\ (res)->tv_sec = (x)->tv_sec + (y)->tv_sec + (((x)->tv_usec + (y)->tv_usec) / 1000000), \