Skip to content

Missing libc::SOMAXCONN for HorizonOS #152

@Meziu

Description

@Meziu

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. :(

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions