Skip to content

Commit 9d2d6a0

Browse files
authored
Rollup merge of #138972 - thaliaarchi:nuttx-build, r=Mark-Simulacrum
std: Fix build for NuttX targets Fix std build for all NuttX targets. It is the single largest set of failures on <https://does-it-build.noratrieb.dev/>. Although, ESP-IDF also requires these same gates, there are other issues for those targets. This can verified be running `x check library/std --target=` for all NuttX targets. cc ``@no1wudi``
2 parents 65fa0ab + 0acac2c commit 9d2d6a0

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: library/std/src/sys/fd/unix.rs

+2
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ const fn max_iov() -> usize {
7171
target_os = "android",
7272
target_os = "dragonfly",
7373
target_os = "emscripten",
74+
target_os = "espidf",
7475
target_os = "freebsd",
7576
target_os = "linux",
7677
target_os = "netbsd",
78+
target_os = "nuttx",
7779
target_os = "nto",
7880
target_os = "openbsd",
7981
target_os = "horizon",

Diff for: 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};

0 commit comments

Comments
 (0)