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;