File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ fn main() {
199
199
}
200
200
201
201
if linux || android {
202
+ cfg. header ( "asm/mman.h" ) ;
202
203
cfg. header ( "malloc.h" ) ;
203
204
cfg. header ( "net/ethernet.h" ) ;
204
205
cfg. header ( "netpacket/packet.h" ) ;
@@ -459,6 +460,11 @@ fn main() {
459
460
// asm/termios.h and ioctl.h (+ some other headers) because of redeclared types.
460
461
"CMSPAR" if mips && linux && !musl => true ,
461
462
463
+ // On mips Linux targets, MADV_SOFT_OFFLINE is currently missing, though it's been added but CI has too old
464
+ // of a Linux version. Since it exists on all other Linux targets, just ignore this for now and remove once
465
+ // it's been fixed in CI.
466
+ "MADV_SOFT_OFFLINE" if mips && linux => true ,
467
+
462
468
_ => false ,
463
469
}
464
470
} ) ;
Original file line number Diff line number Diff line change @@ -411,12 +411,14 @@ pub const MADV_RANDOM: ::c_int = 1;
411
411
pub const MADV_SEQUENTIAL : :: c_int = 2 ;
412
412
pub const MADV_WILLNEED : :: c_int = 3 ;
413
413
pub const MADV_DONTNEED : :: c_int = 4 ;
414
+ pub const MADV_FREE : :: c_int = 8 ;
414
415
pub const MADV_REMOVE : :: c_int = 9 ;
415
416
pub const MADV_DONTFORK : :: c_int = 10 ;
416
417
pub const MADV_DOFORK : :: c_int = 11 ;
417
418
pub const MADV_MERGEABLE : :: c_int = 12 ;
418
419
pub const MADV_UNMERGEABLE : :: c_int = 13 ;
419
420
pub const MADV_HWPOISON : :: c_int = 100 ;
421
+ pub const MADV_SOFT_OFFLINE : :: c_int = 101 ;
420
422
421
423
pub const IFF_UP : :: c_int = 0x1 ;
422
424
pub const IFF_BROADCAST : :: c_int = 0x2 ;
You can’t perform that action at this time.
0 commit comments