Skip to content

Commit c396a30

Browse files
committed
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
1 parent f143f2b commit c396a30

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/unix/bsd/apple/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5545,6 +5545,12 @@ cfg_if! {
55455545
if #[cfg(target_os = "macos")] {
55465546
extern "C" {
55475547
pub fn clock_settime(clock_id: ::clockid_t, tp: *const ::timespec) -> ::c_int;
5548+
}
5549+
}
5550+
}
5551+
cfg_if! {
5552+
if #[cfg(any(target_os = "macos", target_os = "ios"))] {
5553+
extern "C" {
55485554
pub fn memmem(
55495555
haystack: *const ::c_void,
55505556
haystacklen: ::size_t,

0 commit comments

Comments
 (0)