Skip to content

Commit

Permalink
memmem and task_set_info is available on iOS
Browse files Browse the repository at this point in the history
memmem:  __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3)
task_set_info: __TVOS_PROHIBITED __WATCHOS_PROHIBITED
  • Loading branch information
youknowone committed Jul 27, 2022
1 parent f143f2b commit c396a30
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/bsd/apple/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c396a30

Please sign in to comment.