Skip to content

Commit 5be8463

Browse files
authored
Unrolled build for #147213
Rollup merge of #147213 - ivmarkov:fix-hostname-espidf, r=joboet Fix broken STD build for ESP-IDF PRs #147162 and #146937 did [broke](https://github.com/esp-rs/esp-idf-sys/actions/runs/18151791720/job/51663969786) the STD build for `target_os = "espidf"` because that target [does not have neither a `gethostname`, not a `libc::_SC_HOST_NAME_MAX` by default](espressif/esp-idf#14849). While there is a [3rd party component for this syscall](https://components.espressif.com/components/espressif/sock_utils/versions/0.2.2/readme) in the ESP-IDF component registry, I don't think we should use it, because it does not come with ESP-IDF by default. Therefore, the one-liner fix just re-routes ESP-IDF into the `unsupported` branch.
2 parents 1e1a394 + b1c212f commit 5be8463

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/net/hostname

1 file changed

+1
-1
lines changed

library/std/src/sys/net/hostname/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cfg_select! {
2-
target_family = "unix" => {
2+
all(target_family = "unix", not(target_os = "espidf")) => {
33
mod unix;
44
pub use unix::hostname;
55
}

0 commit comments

Comments
 (0)