summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2022-01-16 04:08:21 +0000
committerAriadne Conill <ariadne@dereferenced.org>2022-01-16 04:08:21 +0000
commitecb5345b1982949ab44a3524a17c4e21997212f8 (patch)
treeed3a18299d728608586335d29b6678cc0af92600
parent23a3e1f2934480922f1308e782317ddc429b3a2a (diff)
downloadrust-libc-ecb5345b1982949ab44a3524a17c4e21997212f8.tar.gz
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.
-rw-r--r--src/unix/linux_like/linux/musl/b64/s390x.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unix/linux_like/linux/musl/b64/s390x.rs b/src/unix/linux_like/linux/musl/b64/s390x.rs
index 2725bb1d04..5961eafca3 100644
--- a/src/unix/linux_like/linux/musl/b64/s390x.rs
+++ b/src/unix/linux_like/linux/musl/b64/s390x.rs
@@ -141,9 +141,9 @@ pub const EDEADLK: ::c_int = 35;
pub const ENOSYS: ::c_int = 38;
pub const ENOTCONN: ::c_int = 107;
pub const ETIMEDOUT: ::c_int = 110;
-pub const FIOCLEX: ::c_ulong = 0x5451;
-pub const FIONCLEX: ::c_ulong = 0x5450;
-pub const FIONBIO: ::c_ulong = 0x5421;
+pub const FIOCLEX: ::c_int = 0x5451;
+pub const FIONCLEX: ::c_int = 0x5450;
+pub const FIONBIO: ::c_int = 0x5421;
pub const O_APPEND: ::c_int = 1024;
pub const O_CREAT: ::c_int = 64;
pub const O_EXCL: ::c_int = 128;