Merge branch 'time-systypes' into 'master'

remove sys_types from time header includes

See merge request redox-os/relibc!1336
This commit is contained in:
Jeremy Soller
2026-05-15 08:33:13 -06:00
+9 -3
View File
@@ -9,16 +9,22 @@
# - "NULL As described in <stddef.h>."
# - "Inclusion of the <time.h> header may make visible all symbols from the <signal.h> 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 <bits/timespec.h> // for timespec
#include <bits/locale-t.h> // for locale_t from locale.h
#include <bits/clock-t.h> // for clock_t from sys/types.h
#include <bits/clockid-t.h> // for clockid_t from sys/types.h
#include <bits/pid-t.h> // for pid_t from sys/types.h
#include <bits/timer-t.h> // for timer_t from sys/types.h
#include <bits/timespec.h> // for timespec
#include <bits/locale-t.h> // for locale_t from locale.h
struct sigevent;
"""