File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed
src/unix/linux_like/linux/arch Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -4339,6 +4339,10 @@ fn test_linux(target: &str) {
4339
4339
if old_musl && ( riscv64 || x86_64) && name == "O_LARGEFILE" {
4340
4340
return true ;
4341
4341
}
4342
+ // Values changed in newer musl versions
4343
+ if old_musl && name == "RLIM_NLIMITS" {
4344
+ return true ;
4345
+ }
4342
4346
}
4343
4347
match name {
4344
4348
// These constants are not available if gnu headers have been included
Original file line number Diff line number Diff line change @@ -357,9 +357,6 @@ cfg_if! {
357
357
pub const RLIMIT_RTPRIO : c_int = 14 ;
358
358
pub const RLIMIT_RTTIME : c_int = 15 ;
359
359
#[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
360
- #[ cfg( not( target_arch = "loongarch64" ) ) ]
361
- pub const RLIM_NLIMITS : c_int = 15 ;
362
- #[ cfg( target_arch = "loongarch64" ) ]
363
360
pub const RLIM_NLIMITS : c_int = 16 ;
364
361
#[ allow( deprecated) ]
365
362
#[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ cfg_if! {
349
349
pub const RLIMIT_RTPRIO : c_int = 14 ;
350
350
pub const RLIMIT_RTTIME : c_int = 15 ;
351
351
#[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
352
- pub const RLIM_NLIMITS : c_int = 15 ;
352
+ pub const RLIM_NLIMITS : c_int = 16 ;
353
353
#[ allow( deprecated) ]
354
354
#[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
355
355
pub const RLIMIT_NLIMITS : c_int = RLIM_NLIMITS ;
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ cfg_if! {
330
330
pub const RLIMIT_RTPRIO : c_int = 14 ;
331
331
pub const RLIMIT_RTTIME : c_int = 15 ;
332
332
#[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
333
- pub const RLIM_NLIMITS : c_int = 15 ;
333
+ pub const RLIM_NLIMITS : c_int = 16 ;
334
334
#[ allow( deprecated) ]
335
335
#[ deprecated( since = "0.2.64" , note = "Not stable across OS versions" ) ]
336
336
pub const RLIMIT_NLIMITS : c_int = RLIM_NLIMITS ;
You can’t perform that action at this time.
0 commit comments