@@ -122,6 +122,11 @@ libc_support_library(
122
122
hdrs = ["hdr/errno_macros.h" ],
123
123
)
124
124
125
+ libc_support_library (
126
+ name = "hdr_time_macros" ,
127
+ hdrs = ["hdr/time_macros.h" ],
128
+ )
129
+
125
130
############################ Type Proxy Header Files ###########################
126
131
127
132
libc_support_library (
@@ -149,6 +154,11 @@ libc_support_library(
149
154
hdrs = ["hdr/types/struct_timespec.h" ],
150
155
)
151
156
157
+ libc_support_library (
158
+ name = "types_time_t" ,
159
+ hdrs = ["hdr/types/time_t.h" ],
160
+ )
161
+
152
162
############################### Support libraries ##############################
153
163
154
164
libc_support_library (
@@ -1115,6 +1125,7 @@ libc_support_library(
1115
1125
":__support_cpp_optional" ,
1116
1126
":__support_osutil_syscall" ,
1117
1127
":__support_threads_linux_futex_word_type" ,
1128
+ ":__support_time_linux" ,
1118
1129
":types_struct_timespec" ,
1119
1130
],
1120
1131
)
@@ -1139,6 +1150,28 @@ libc_support_library(
1139
1150
],
1140
1151
)
1141
1152
1153
+ libc_support_library (
1154
+ name = "__support_time" ,
1155
+ hdrs = glob (["src/__support/time/*.h" ]),
1156
+ deps = [
1157
+ ":hdr_time_macros" ,
1158
+ ":types_time_t" ,
1159
+ ],
1160
+ )
1161
+
1162
+ libc_support_library (
1163
+ name = "__support_time_linux" ,
1164
+ hdrs = glob (["src/__support/time/linux/**/*.h" ]),
1165
+ target_compatible_with = select ({
1166
+ "@platforms//os:linux" : [],
1167
+ "//conditions:default" : ["@platforms//:incompatible" ],
1168
+ }),
1169
+ deps = [
1170
+ ":__support_time" ,
1171
+ ":hdr_time_macros" ,
1172
+ ],
1173
+ )
1174
+
1142
1175
############################### errno targets ################################
1143
1176
1144
1177
libc_function (
0 commit comments