Skip to content

Commit 0811a7b

Browse files
committed
musl: fix SIGSTKFLT name on mips
This was incorrectly named in upstream musl and fixed in bminor/musl@cabc369
1 parent f87521b commit 0811a7b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

libc-test/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4287,6 +4287,10 @@ fn test_linux(target: &str) {
42874287
if old_musl && name == "RLIM_NLIMITS" {
42884288
return true;
42894289
}
4290+
// Incorrectly named and renamed upstream:
4291+
if old_musl && name == "SIGSTKFLT" {
4292+
return true;
4293+
}
42904294
}
42914295
match name {
42924296
// These constants are not available if gnu headers have been included

src/unix/linux_like/linux/musl/b32/mips/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,14 @@ pub const SIGTSTP: c_int = 24;
563563
pub const SIGURG: c_int = 21;
564564
pub const SIGIO: c_int = 22;
565565
pub const SIGSYS: c_int = 12;
566+
#[cfg(musl_v1_2_3)]
567+
pub const SIGEMT: c_int = 7;
568+
#[cfg(not(musl_v1_2_3))]
569+
#[deprecated(
570+
since = "0.2.173",
571+
note = "This signal is actually corresponds to SIGEMT was incorrectly named in musl.
572+
As it does not exist on mips it will be dropped entirely in a future release"
573+
)]
566574
pub const SIGSTKFLT: c_int = 7;
567575
pub const SIGPOLL: c_int = crate::SIGIO;
568576
pub const SIGPWR: c_int = 19;

0 commit comments

Comments
 (0)