Fix type of FIOCLEX/FIONBIO on musl
This commit is contained in:
parent
767ba143e3
commit
5f98113fcf
|
@ -7,6 +7,9 @@ pub const RUSAGE_CHILDREN: ::c_int = 1;
|
|||
pub const NI_MAXHOST: ::socklen_t = 255;
|
||||
pub const PTHREAD_STACK_MIN: ::size_t = 2048;
|
||||
|
||||
pub const FIOCLEX: ::c_int = 0x5451;
|
||||
pub const FIONBIO: ::c_int = 0x5421;
|
||||
|
||||
extern {
|
||||
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
|
||||
}
|
||||
|
|
|
@ -168,9 +168,6 @@ pub const TCP_REPAIR_OPTIONS: ::c_int = 22;
|
|||
pub const TCP_FASTOPEN: ::c_int = 23;
|
||||
pub const TCP_TIMESTAMP: ::c_int = 24;
|
||||
|
||||
pub const FIOCLEX: ::c_ulong = 0x5451;
|
||||
pub const FIONBIO: ::c_ulong = 0x5421;
|
||||
|
||||
pub const SA_ONSTACK: ::c_int = 0x08000000;
|
||||
pub const SA_SIGINFO: ::c_int = 0x00000004;
|
||||
pub const SA_NOCLDWAIT: ::c_int = 0x00000002;
|
||||
|
|
|
@ -24,6 +24,9 @@ pub const RUSAGE_CHILDREN: ::c_int = -1;
|
|||
pub const ST_RELATIME: ::c_ulong = 4096;
|
||||
pub const NI_MAXHOST: ::socklen_t = 1025;
|
||||
|
||||
pub const FIOCLEX: ::c_ulong = 0x5451;
|
||||
pub const FIONBIO: ::c_ulong = 0x5421;
|
||||
|
||||
cfg_if! {
|
||||
if #[cfg(any(target_arch = "arm", target_arch = "x86",
|
||||
target_arch = "x86_64"))] {
|
||||
|
|
Loading…
Reference in New Issue