File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ bitflags! {
3333 const NVAL = libc:: POLLNVAL ;
3434 /// `POLLRDHUP`
3535 // TODO: Submitted to upstream libc:
36- // <https://github.com/rust-lang/libc/pull/2247 >
36+ // <https://github.com/rust-lang/libc/pull/2390 >
3737 #[ cfg( not( any( target_arch = "sparc" , target_arch = "sparc64" ) ) ) ]
3838 const RDHUP = 0x2000 ;
3939 }
Original file line number Diff line number Diff line change @@ -365,7 +365,11 @@ pub enum Advice {
365365 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
366366 LinuxHwPoison = libc:: MADV_HWPOISON ,
367367 /// `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+ ) ) ]
369373 LinuxSoftOffline = libc:: MADV_SOFT_OFFLINE ,
370374 /// `MADV_MERGEABLE`
371375 #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
You can’t perform that action at this time.
0 commit comments