From ba7ff452d5dcac7bc51f295f90265a0359ef60f2 Mon Sep 17 00:00:00 2001 From: ivmarkov Date: Sat, 17 Sep 2022 18:14:03 +0300 Subject: Compatibility with ESP-IDF V5 --- src/unix/newlib/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs index 34a63a81a0..1a694691a6 100644 --- a/src/unix/newlib/mod.rs +++ b/src/unix/newlib/mod.rs @@ -41,7 +41,7 @@ pub type tcflag_t = ::c_uint; pub type useconds_t = u32; cfg_if! { - if #[cfg(target_os = "horizon")] { + if #[cfg(any(target_os = "horizon", all(target_os = "espidf", espidf_time64)))] { pub type time_t = ::c_longlong; } else { pub type time_t = i32; -- cgit v1.2.1