From c396a303505b8d42fc5dc1ed6376fa8a9cccbb94 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Thu, 28 Jul 2022 08:35:52 +0900 Subject: [PATCH] memmem and task_set_info is available on iOS memmem: __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3) task_set_info: __TVOS_PROHIBITED __WATCHOS_PROHIBITED --- src/unix/bsd/apple/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index d0532f854b52d..1026b73dd9888 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -5545,6 +5545,12 @@ cfg_if! { if #[cfg(target_os = "macos")] { extern "C" { pub fn clock_settime(clock_id: ::clockid_t, tp: *const ::timespec) -> ::c_int; + } + } +} +cfg_if! { + if #[cfg(any(target_os = "macos", target_os = "ios"))] { + extern "C" { pub fn memmem( haystack: *const ::c_void, haystacklen: ::size_t,