From 7bd7276c094b764f377254e4632bdc6ea61e2132 Mon Sep 17 00:00:00 2001 From: Sergio Gasquez Date: Mon, 21 Oct 2024 12:37:29 +0200 Subject: [PATCH] feat: Update esp-idf flag --- build.rs | 2 +- src/unix/newlib/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build.rs b/build.rs index eb602cd37a491..9dd693407547f 100644 --- a/build.rs +++ b/build.rs @@ -7,7 +7,7 @@ use std::str; // make sure to add it to this list as well. const ALLOWED_CFGS: &'static [&'static str] = &[ "emscripten_new_stat_abi", - "espidf_time64", + "espidf_time32", "freebsd10", "freebsd11", "freebsd12", diff --git a/src/unix/newlib/mod.rs b/src/unix/newlib/mod.rs index 3b5f3eb05fa9a..e52361f56bdf6 100644 --- a/src/unix/newlib/mod.rs +++ b/src/unix/newlib/mod.rs @@ -52,7 +52,7 @@ cfg_if! { pub type useconds_t = u32; cfg_if! { - if #[cfg(any(target_os = "horizon", all(target_os = "espidf", espidf_time64)))] { + if #[cfg(any(target_os = "horizon", all(target_os = "espidf", not(espidf_time32))))] { pub type time_t = ::c_longlong; } else { pub type time_t = i32;