From 98e72b04d8a720b57699682c6b758bfe5cc8027a Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 16 Oct 2021 08:51:31 +0900 Subject: [PATCH] Remove some workarounds for older macOSes --- libc-test/build.rs | 24 +++--------------------- 1 file changed, 3 insertions(+), 21 deletions(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 1f38a19a6b13d..2cfac7a7525f5 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -221,6 +221,7 @@ fn test_apple(target: &str) { "poll.h", "pthread.h", "pthread_spis.h", + "pthread/introspection.h", "pwd.h", "regex.h", "resolv.h", @@ -284,12 +285,8 @@ fn test_apple(target: &str) { } }); - cfg.skip_type(move |ty| { - match ty { - // requires macOs 11.0 or higher - "pthread_introspection_hook_t" => true, - _ => false, - } + cfg.skip_type(move |ty| match ty { + _ => false, }); cfg.skip_const(move |name| { @@ -303,14 +300,6 @@ fn test_apple(target: &str) { "KERN_KDENABLE_BG_TRACE" | "KERN_KDDISABLE_BG_TRACE" => true, // FIXME: the value has been changed since Catalina (0xffff0000 -> 0x3fff0000). "SF_SETTABLE" => true, - // FIXME: the values have been changed since Big Sur - "HW_TARGET" | "HW_PRODUCT" | "HW_MAXID" => true, - // these consts requires macOS 11.0 or higher - "PTHREAD_INTROSPECTION_THREAD_CREATE" - | "PTHREAD_INTROSPECTION_THREAD_DESTROY" - | "PTHREAD_INTROSPECTION_THREAD_START" - | "PTHREAD_INTROSPECTION_THREAD_TERMINATE" - | "RTF_GLOBAL" => true, _ => false, } }); @@ -324,13 +313,6 @@ fn test_apple(target: &str) { // close calls the close_nocancel system call "close" => true, - // these calls require macOS 11.0 or higher - "pthread_introspection_hook_install" - | "pthread_introspection_getspecific_np" - | "pthread_introspection_setspecific_np" - | "preadv" - | "pwritev" => true, - _ => false, } });