Skip to content

Commit 022a439

Browse files
SergioGasqueztgross35
authored andcommitted
feat: Update esp-idf flag
(backport <rust-lang#3993>) (cherry picked from commit 7bd7276)
1 parent 8fe0146 commit 022a439

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ use std::str;
77
// make sure to add it to this list as well.
88
const ALLOWED_CFGS: &'static [&'static str] = &[
99
"emscripten_new_stat_abi",
10-
"espidf_time64",
10+
"espidf_time32",
1111
"freebsd10",
1212
"freebsd11",
1313
"freebsd12",

src/unix/newlib/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ cfg_if! {
5252
pub type useconds_t = u32;
5353

5454
cfg_if! {
55-
if #[cfg(any(target_os = "horizon", all(target_os = "espidf", espidf_time64)))] {
55+
if #[cfg(any(target_os = "horizon", all(target_os = "espidf", not(espidf_time32))))] {
5656
pub type time_t = ::c_longlong;
5757
} else {
5858
pub type time_t = i32;

0 commit comments

Comments
 (0)