Skip to content

Commit 98c2687

Browse files
committed
std: Fix build for NuttX targets
`x check library/std` currently fails for all NuttX targets. Although, ESP-IDF also requires these same gates, it does not fix all issues for those targets.
1 parent 6e8abb5 commit 98c2687

File tree

2 files changed

+3
-0
lines changed
  • library/std/src/sys

2 files changed

+3
-0
lines changed

library/std/src/sys/net/connection/socket/unix.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
use libc::{MSG_PEEK, c_int, c_void, size_t, sockaddr, socklen_t};
22

3+
#[cfg(not(any(target_os = "espidf", target_os = "nuttx")))]
34
use crate::ffi::CStr;
45
use crate::io::{self, BorrowedBuf, BorrowedCursor, IoSlice, IoSliceMut};
56
use crate::net::{Shutdown, SocketAddr};

library/std/src/sys/pal/unix/fd.rs

+2
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ const fn max_iov() -> usize {
6767
target_os = "android",
6868
target_os = "dragonfly",
6969
target_os = "emscripten",
70+
target_os = "espidf",
7071
target_os = "freebsd",
7172
target_os = "linux",
7273
target_os = "netbsd",
74+
target_os = "nuttx",
7375
target_os = "nto",
7476
target_os = "openbsd",
7577
target_os = "horizon",

0 commit comments

Comments
 (0)