Skip to content

Commit

Permalink
Auto merge of #2630 - kaniini:chore/s390x-musl-fixes, r=Amanieu
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bors committed Jan 17, 2022
2 parents 5617b46 + ecb5345 commit f0ba214
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/unix/linux_like/linux/musl/b64/s390x.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -743,5 +743,5 @@ pub const SYS_epoll_pwait2: ::c_long = 441;
pub const SYS_mount_setattr: ::c_long = 442;

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

0 comments on commit f0ba214

Please sign in to comment.