Skip to content

Commit ecb5345

Browse files
committed
Fix definitions of FIONBIO/FIONCLEX/FIOCLEX constants on s390x-musl.
On musl, these constants must be ints, not ulongs. On glibc, they are ulong, and as such, were erroneously included as ulongs in the initial s390x-musl definitions.
1 parent 23a3e1f commit ecb5345

File tree

1 file changed

+3
-3
lines changed
  • src/unix/linux_like/linux/musl/b64

1 file changed

+3
-3
lines changed

src/unix/linux_like/linux/musl/b64/s390x.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,9 @@ pub const EDEADLK: ::c_int = 35;
141141
pub const ENOSYS: ::c_int = 38;
142142
pub const ENOTCONN: ::c_int = 107;
143143
pub const ETIMEDOUT: ::c_int = 110;
144-
pub const FIOCLEX: ::c_ulong = 0x5451;
145-
pub const FIONCLEX: ::c_ulong = 0x5450;
146-
pub const FIONBIO: ::c_ulong = 0x5421;
144+
pub const FIOCLEX: ::c_int = 0x5451;
145+
pub const FIONCLEX: ::c_int = 0x5450;
146+
pub const FIONBIO: ::c_int = 0x5421;
147147
pub const O_APPEND: ::c_int = 1024;
148148
pub const O_CREAT: ::c_int = 64;
149149
pub const O_EXCL: ::c_int = 128;

0 commit comments

Comments
 (0)