Skip to content

Commit

Permalink
Auto merge of #2853 - youknowone:ios-memmem, r=JohnTitor
Browse files Browse the repository at this point in the history
memmem and task_set_info are available on iOS

memmem:  __OSX_AVAILABLE_STARTING(__MAC_10_7, __IPHONE_4_3)
task_set_info: __TVOS_PROHIBITED __WATCHOS_PROHIBITED
  • Loading branch information
bors committed Jul 29, 2022
2 parents f143f2b + c396a30 commit d90fcbf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/bsd/apple/mod.rs
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 d90fcbf

Please sign in to comment.