diff options
author | Alan Somers <asomers@gmail.com> | 2022-09-03 09:51:49 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2022-09-03 10:37:59 -0600 |
commit | ab577960b8545839fad516ee6ae64221a3a57224 (patch) | |
tree | 6772ea10676daf5698024293d17c725ee94f6765 /libc-test | |
parent | b6e47043f99d3c2a2e5ec002f078130a91cd5c01 (diff) | |
download | rust-libc-ab577960b8545839fad516ee6ae64221a3a57224.tar.gz |
Fix the tests on the latest FreeBSD 14.0-CURRENT
Diffstat (limited to 'libc-test')
-rw-r--r-- | libc-test/build.rs | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 5cf1b68eee..da808cc767 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2009,17 +2009,39 @@ fn test_freebsd(target: &str) { // These constants were introduced in FreeBSD 13: "EFD_CLOEXEC" | "EFD_NONBLOCK" | "EFD_SEMAPHORE" if Some(13) > freebsd_ver => true, - // FIXME: There are deprecated - remove in a couple of releases. + // FIXME: These are deprecated - remove in a couple of releases. // These constants were removed in FreeBSD 11 (svn r273250) but will // still be accepted and ignored at runtime. "MAP_RENAME" | "MAP_NORESERVE" => true, - // FIXME: There are deprecated - remove in a couple of releases. + // FIXME: These are deprecated - remove in a couple of releases. // These constants were removed in FreeBSD 11 (svn r262489), // and they've never had any legitimate use outside of the // base system anyway. "CTL_MAXID" | "KERN_MAXID" | "HW_MAXID" | "USER_MAXID" => true, + // FIXME: This is deprecated - remove in a couple of releases. + // This was removed in FreeBSD 14 (git 1b4701fe1e8) and never + // should've been used anywhere anyway. + "TDF_UNUSED23" => true, + + // FIXME: These are deprecated - remove in a couple of releases. + // These symbols are not stable across OS-versions. They were + // changed for FreeBSD 14 in git revisions b62848b0c3f and + // 2cf7870864e. + "PRI_MAX_ITHD" | "PRI_MIN_REALTIME" | "PRI_MAX_REALTIME" | "PRI_MIN_KERN" + | "PRI_MAX_KERN" | "PSWP" | "PVM" | "PINOD" | "PRIBIO" | "PVFS" | "PZERO" | "PSOCK" + | "PWAIT" | "PLOCK" | "PPAUSE" | "PRI_MIN_TIMESHARE" | "PUSER" | "PI_AV" | "PI_NET" + | "PI_DISK" | "PI_TTY" | "PI_DULL" | "PI_SOFT" => true, + + // This symbol changed in FreeBSD 14 (git 051e7d78b03), but the new + // version should be safe to use on older releases. + "IFCAP_CANTCHANGE" => true, + + // These were removed in FreeBSD 14 (git c6d31b8306e) + "TDF_ASTPENDING" | "TDF_NEEDSUSPCHK" | "TDF_NEEDRESCHED" | "TDF_NEEDSIGCHK" + | "TDF_ALRMPEND" | "TDF_PROFPEND" | "TDF_MACPEND" => true, + // This constant was removed in FreeBSD 13 (svn r363622), and never // had any legitimate use outside of the base system anyway. "CTL_P1003_1B_MAXID" => true, @@ -2154,6 +2176,9 @@ fn test_freebsd(target: &str) { // Added in FreeBSD 13 "FIOSSHMLPGCNF" if Some(13) > freebsd_ver => true, + // Added in FreeBSD 14 + "IFCAP_NV" if Some(14) > freebsd_ver => true, + _ => false, } }); |