summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeong YunWon <jeong@youknowone.org>2022-07-28 08:35:52 +0900
committerJeong YunWon <jeong@youknowone.org>2022-07-28 08:35:52 +0900
commitc396a303505b8d42fc5dc1ed6376fa8a9cccbb94 (patch)
tree720227efa1c60166dc263a8721c83fccd1298e0e
parentf143f2b9ace1c9b99dd5c104470e94f5990ed7d2 (diff)
downloadrust-libc-c396a303505b8d42fc5dc1ed6376fa8a9cccbb94.tar.gz
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
-rw-r--r--src/unix/bsd/apple/mod.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs
index d0532f854b..1026b73dd9 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,