File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ bitflags! {
33
33
const NVAL = libc:: POLLNVAL ;
34
34
/// `POLLRDHUP`
35
35
// TODO: Submitted to upstream libc:
36
- // <https://github.com/rust-lang/libc/pull/2247 >
36
+ // <https://github.com/rust-lang/libc/pull/2390 >
37
37
#[ cfg( not( any( target_arch = "sparc" , target_arch = "sparc64" ) ) ) ]
38
38
const RDHUP = 0x2000 ;
39
39
}
Original file line number Diff line number Diff line change @@ -365,7 +365,11 @@ pub enum Advice {
365
365
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
366
366
LinuxHwPoison = libc:: MADV_HWPOISON ,
367
367
/// `MADV_SOFT_OFFLINE`
368
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
368
+ // TODO: Enable riscv once <https://github.com/rust-lang/libc/pull/2391> lands.
369
+ #[ cfg( all(
370
+ not( target_arch = "riscv64" ) ,
371
+ any( target_os = "android" , target_os = "linux" )
372
+ ) ) ]
369
373
LinuxSoftOffline = libc:: MADV_SOFT_OFFLINE ,
370
374
/// `MADV_MERGEABLE`
371
375
#[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
You can’t perform that action at this time.
0 commit comments