remove sys_types from time header includes

This commit is contained in:
auronandace
2026-05-15 14:58:20 +01:00
parent f7594af753
commit 933190e37c
+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;
"""