Skip to content

Commit a45a48c

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 d07175f commit a45a48c

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
@@ -4307,6 +4307,10 @@ fn test_linux(target: &str) {
43074307
if old_musl && name == "RLIM_NLIMITS" {
43084308
return true;
43094309
}
4310+
// Incorrectly named and renamed upstream:
4311+
if old_musl && name == "SIGSTKFLT" {
4312+
return true;
4313+
}
43104314
}
43114315
match name {
43124316
// 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)