Skip to content

Commit 23a3e1f

Browse files
committed
Fix ioctl definition on s390x-musl targets.
ioctl(2) always takes an int as the request, not a ulong, on musl. I copied a little too closely from the glibc definitions when creating the original s390x-musl ones.
1 parent e470e3b commit 23a3e1f

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)