Skip to content

Commit 95cfe83

Browse files
committed
Remove some workarounds for older macOSes
1 parent cdf887c commit 95cfe83

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

libc-test/build.rs

-17
Original file line numberDiff line numberDiff line change
@@ -286,8 +286,6 @@ fn test_apple(target: &str) {
286286

287287
cfg.skip_type(move |ty| {
288288
match ty {
289-
// requires macOs 11.0 or higher
290-
"pthread_introspection_hook_t" => true,
291289
_ => false,
292290
}
293291
});
@@ -303,14 +301,6 @@ fn test_apple(target: &str) {
303301
"KERN_KDENABLE_BG_TRACE" | "KERN_KDDISABLE_BG_TRACE" => true,
304302
// FIXME: the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
305303
"SF_SETTABLE" => true,
306-
// FIXME: the values have been changed since Big Sur
307-
"HW_TARGET" | "HW_PRODUCT" | "HW_MAXID" => true,
308-
// these consts requires macOS 11.0 or higher
309-
"PTHREAD_INTROSPECTION_THREAD_CREATE"
310-
| "PTHREAD_INTROSPECTION_THREAD_DESTROY"
311-
| "PTHREAD_INTROSPECTION_THREAD_START"
312-
| "PTHREAD_INTROSPECTION_THREAD_TERMINATE"
313-
| "RTF_GLOBAL" => true,
314304
_ => false,
315305
}
316306
});
@@ -324,13 +314,6 @@ fn test_apple(target: &str) {
324314
// close calls the close_nocancel system call
325315
"close" => true,
326316

327-
// these calls require macOS 11.0 or higher
328-
"pthread_introspection_hook_install"
329-
| "pthread_introspection_getspecific_np"
330-
| "pthread_introspection_setspecific_np"
331-
| "preadv"
332-
| "pwritev" => true,
333-
334317
_ => false,
335318
}
336319
});

0 commit comments

Comments
 (0)