ctru-rs icon indicating copy to clipboard operation
ctru-rs copied to clipboard

Missing libc::SOMAXCONN for HorizonOS

Open Meziu opened this issue 1 year ago • 0 comments

Seems like the latest nightly broke something in the std::os::unix::net module, for which now the maximum backlog number for horizonOS seems to be set to libc::SOMAXCONN, a constant we obviously do not include. This is the referred line.

We already had problems in the past that made us set the maximum backlog number to 20 for std::sys_common::net (right here), but I guess no action was taken for UnixListener.

To be completely honest, I don't know whether horizon supports UnixListener fully, but this might be a chance to add a new const to libc that might be used by external crates. Otherwise, we can simply add a #[cfg(target_os = "horizon")] and set our own value within std. In the mean time, the CI fails on the latest nightly. :(

Meziu avatar Jan 05 '24 12:01 Meziu