Skip to content

Commit 6626f72

Browse files
authored
Merge pull request #3993 from SergioGasquez/feat/esp-idf-flags
Update esp-idf time flag
2 parents 03d1c4b + 7bd7276 commit 6626f72

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)