diff --git a/core/src/thread_parker/unix.rs b/core/src/thread_parker/unix.rs index c52ead93..a75e1768 100644 --- a/core/src/thread_parker/unix.rs +++ b/core/src/thread_parker/unix.rs @@ -127,12 +127,12 @@ impl super::ThreadParkerT for ThreadParker { impl ThreadParker { /// Initializes the condvar to use CLOCK_MONOTONIC instead of CLOCK_REALTIME. - #[cfg(any(target_os = "macos", target_os = "ios", target_os = "android"))] + #[cfg(any(target_os = "macos", target_os = "ios", target_os = "android", target_os = "espidf"))] #[inline] unsafe fn init(&self) {} /// Initializes the condvar to use CLOCK_MONOTONIC instead of CLOCK_REALTIME. - #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "android")))] + #[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "android", target_os = "espidf")))] #[inline] unsafe fn init(&self) { let mut attr = MaybeUninit::::uninit();