Skip to content

Commit 106c486

Browse files
committed
musl: fix SIGSTKFLT name on mips
This was incorrectly named in upstream musl and fixed in bminor/musl@cabc369 This commit adds SIGEMT unconditionally as adding a constant should not cause any backwards-incompatible changes.
1 parent 7c25c46 commit 106c486

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

libc-test/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4313,6 +4313,10 @@ fn test_linux(target: &str) {
43134313
if old_musl && name == "RLIM_NLIMITS" {
43144314
return true;
43154315
}
4316+
// Incorrectly named and renamed upstream:
4317+
if old_musl && name == "SIGSTKFLT" {
4318+
return true;
4319+
}
43164320
}
43174321
match name {
43184322
// These constants are not available if gnu headers have been included

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,6 +563,13 @@ 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+
pub const SIGEMT: c_int = 7;
567+
#[cfg(not(musl_v1_2_3))]
568+
#[deprecated(
569+
since = "0.2.173",
570+
note = "This signal actually corresponds to SIGEMT was incorrectly named in musl.
571+
As it does not exist on mips it will be dropped entirely in a future release"
572+
)]
566573
pub const SIGSTKFLT: c_int = 7;
567574
pub const SIGPOLL: c_int = crate::SIGIO;
568575
pub const SIGPWR: c_int = 19;

0 commit comments

Comments
 (0)