Skip to content

Commit f0ba214

Browse files
committedJan 17, 2022
Auto merge of #2630 - kaniini:chore/s390x-musl-fixes, r=Amanieu
Fix definitions for the s390x-musl target. When I was creating the original s390x musl definitions, I copied a little too closely from glibc for the ioctl(2) constants. This was then exacerbated in c7c238d with the creation of an erroneous definition.
2 parents 5617b46 + ecb5345 commit f0ba214

File tree

1 file changed

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

1 file changed

+4
-4
lines changed
 

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

+4-4
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;
@@ -743,5 +743,5 @@ pub const SYS_epoll_pwait2: ::c_long = 441;
743743
pub const SYS_mount_setattr: ::c_long = 442;
744744

745745
extern "C" {
746-
pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
746+
pub fn ioctl(fd: ::c_int, request: ::c_int, ...) -> ::c_int;
747747
}

0 commit comments

Comments
 (0)