Skip to content

Commit ac930a2

Browse files
authored
Merge pull request #1844 from asomers/CTL_P1003_1B_MAXID
Deprecate CTL_P1003_1B_MAXID
2 parents b1268e4 + 554ea4b commit ac930a2

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

libc-test/build.rs

+4
Original file line numberDiff line numberDiff line change
@@ -1824,6 +1824,10 @@ fn test_freebsd(target: &str) {
18241824
// base system anyway.
18251825
"CTL_MAXID" | "KERN_MAXID" | "HW_MAXID" | "USER_MAXID" => true,
18261826

1827+
// This constant was removed in FreeBSD 13 (svn r363622), and never
1828+
// had any legitimate use outside of the base system anyway.
1829+
"CTL_P1003_1B_MAXID" => true,
1830+
18271831
// This was renamed in FreeBSD 12.2 and 13 (r352486).
18281832
"CTL_UNSPEC" | "CTL_SYSCTL" => true,
18291833

src/unix/bsd/freebsdlike/freebsd/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ pub const HW_MAXID: ::c_int = 13;
10561056
#[deprecated(since = "0.2.54", note = "Removed in FreeBSD 11")]
10571057
pub const USER_MAXID: ::c_int = 21;
10581058
#[doc(hidden)]
1059+
#[deprecated(since = "0.2.74", note = "Removed in FreeBSD 13")]
10591060
pub const CTL_P1003_1B_MAXID: ::c_int = 26;
10601061

10611062
pub const MSG_NOTIFICATION: ::c_int = 0x00002000;

0 commit comments

Comments
 (0)