@@ -221,6 +221,7 @@ fn test_apple(target: &str) {
221
221
"poll.h" ,
222
222
"pthread.h" ,
223
223
"pthread_spis.h" ,
224
+ "pthread/introspection.h" ,
224
225
"pwd.h" ,
225
226
"regex.h" ,
226
227
"resolv.h" ,
@@ -284,12 +285,8 @@ fn test_apple(target: &str) {
284
285
}
285
286
} ) ;
286
287
287
- cfg. skip_type ( move |ty| {
288
- match ty {
289
- // requires macOs 11.0 or higher
290
- "pthread_introspection_hook_t" => true ,
291
- _ => false ,
292
- }
288
+ cfg. skip_type ( move |ty| match ty {
289
+ _ => false ,
293
290
} ) ;
294
291
295
292
cfg. skip_const ( move |name| {
@@ -303,14 +300,6 @@ fn test_apple(target: &str) {
303
300
"KERN_KDENABLE_BG_TRACE" | "KERN_KDDISABLE_BG_TRACE" => true ,
304
301
// FIXME: the value has been changed since Catalina (0xffff0000 -> 0x3fff0000).
305
302
"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 ,
314
303
_ => false ,
315
304
}
316
305
} ) ;
@@ -324,13 +313,6 @@ fn test_apple(target: &str) {
324
313
// close calls the close_nocancel system call
325
314
"close" => true ,
326
315
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
-
334
316
_ => false ,
335
317
}
336
318
} ) ;
0 commit comments