@@ -416,12 +416,6 @@ fn main() {
416416 "NOTE_EXIT_REPARENTED" |
417417 "NOTE_REAP" if apple => true ,
418418
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-
425419 // These constants were removed in FreeBSD 11 (svn r273250) but will
426420 // still be accepted and ignored at runtime.
427421 "MAP_RENAME" |
@@ -477,6 +471,7 @@ fn main() {
477471 // are header conflicts if we try to include the headers that define them here.
478472 "F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => true ,
479473 "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
480475
481476 _ => false ,
482477 }
@@ -667,10 +662,12 @@ fn main() {
667662 } else {
668663 cfg. header ( "linux/fcntl.h" ) ;
669664 }
665+ cfg. header ( "linux/quota.h" ) ;
670666 cfg. skip_const ( move |name| {
671667 match name {
672668 "F_CANCELLK" | "F_ADD_SEALS" | "F_GET_SEALS" => false ,
673669 "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 ,
674671 _ => true ,
675672 }
676673 } ) ;
0 commit comments