Skip to content

Commit 3e28d99

Browse files
committed
musl: powerpc64: Fix definition of EDEADLK
musl defines EDEADLK to be 35 on powerpc64 and EDEADLOCK to be 58. This has always been the case since the introduction of powerpc64 support in musl. See: https://git.musl-libc.org/cgit/musl/tree/arch/powerpc64/bits/errno.h#n35 https://git.musl-libc.org/cgit/musl/tree/arch/powerpc64/bits/errno.h#n58 Signed-off-by: Jens Reidel <adrian@travitia.xyz>
1 parent be45368 commit 3e28d99

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ pub const SYS_process_mrelease: c_long = 448;
641641
pub const SYS_futex_waitv: c_long = 449;
642642
pub const SYS_set_mempolicy_home_node: c_long = 450;
643643

644-
pub const EDEADLK: c_int = 58;
645-
pub const EDEADLOCK: c_int = EDEADLK;
644+
pub const EDEADLK: c_int = 35;
645+
pub const EDEADLOCK: c_int = 58;
646646

647647
pub const EXTPROC: crate::tcflag_t = 0x10000000;
648648
pub const VEOL: usize = 6;

0 commit comments

Comments
 (0)