Skip to content

Commit 8176272

Browse files
committed
Auto merge of #3054 - zRedShift:esp-idf-fd-setsize, r=JohnTitor
Set correct `FD_SETSIZE` for `espidf` Source: https://github.com/espressif/newlib-esp32/blob/esp_based_on_4_1_0/newlib/libc/include/sys/select.h#L31 `@ivmarkov` `@igrr` `@MabezDev` Please correct me if I'm wrong
2 parents 72fba0e + ff249bc commit 8176272

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/unix/newlib/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ pub const PTHREAD_MUTEX_RECURSIVE: ::c_int = 1;
271271
pub const PTHREAD_MUTEX_ERRORCHECK: ::c_int = 2;
272272

273273
cfg_if! {
274-
if #[cfg(target_os = "horizon")] {
274+
if #[cfg(any(target_os = "horizon", target_os = "espidf"))] {
275275
pub const FD_SETSIZE: usize = 64;
276276
} else {
277277
pub const FD_SETSIZE: usize = 1024;

0 commit comments

Comments
 (0)