-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Description
A few days ago rust-websocket was replaced with ws-rs in the debugger, and this change breaks the Android build currently.
ws-rs depends on mio, which in turn depends on nix, a dependency that wants to use the kernel signal definitions. It tries to create a sigaction structure here; the problem is that the type of sa_flags is architecture-dependent (int, unsigned int or unsigned long, see here), but nix defines it as an int here. (Note: we're using an older nix currently, but the problem still exists upstream).
In addition, it seems the type of the flags are defined incorrectly in libc too, as for example some of the possible flags are defined globally for notbsd targets as int here, despite that for other values ulong is used for notbsd/ android, int for notbsd/linux/other, and the remaining flags are not even defined for notbsd/linux/musl.
Related/blocks: #13154
cc @larsbergstrom