@@ -416,12 +416,6 @@ fn main() {
416
416
"NOTE_EXIT_REPARENTED" |
417
417
"NOTE_REAP" if apple => true ,
418
418
419
- // The linux/quota.h header file which defines these can't be
420
- // included with sys/quota.h currently on MIPS, so we don't include
421
- // it and just ignore these constants
422
- "QFMT_VFS_OLD" |
423
- "QFMT_VFS_V0" if mips && linux => true ,
424
-
425
419
// These constants were removed in FreeBSD 11 (svn r273250) but will
426
420
// still be accepted and ignored at runtime.
427
421
"MAP_RENAME" |
@@ -477,6 +471,7 @@ fn main() {
477
471
// are header conflicts if we try to include the headers that define them here.
478
472
"F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => true ,
479
473
"F_SEAL_SEAL" | "F_SEAL_SHRINK" | "F_SEAL_GROW" | "F_SEAL_WRITE" => true ,
474
+ "QFMT_VFS_OLD" | "QFMT_VFS_V0" | "QFMT_VFS_V1" if mips && linux => true , // Only on MIPS
480
475
481
476
_ => false ,
482
477
}
@@ -667,10 +662,12 @@ fn main() {
667
662
} else {
668
663
cfg. header ( "linux/fcntl.h" ) ;
669
664
}
665
+ cfg. header ( "linux/quota.h" ) ;
670
666
cfg. skip_const ( move |name| {
671
667
match name {
672
668
"F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => false ,
673
669
"F_SEAL_SEAL" | "F_SEAL_SHRINK" | "F_SEAL_GROW" | "F_SEAL_WRITE" => false ,
670
+ "QFMT_VFS_OLD" | "QFMT_VFS_V0" | "QFMT_VFS_V1" if mips && linux => false ,
674
671
_ => true ,
675
672
}
676
673
} ) ;
0 commit comments