diff options
author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-07-29 04:12:55 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-29 04:12:55 +0900 |
commit | ac930a2536e430e745bfc1747285b38192f75cee (patch) | |
tree | 4693f0cbe22a964eee669ad931e9d6d7aba27f92 | |
parent | b1268e43cd34ebc95d184928296fc73740cd5162 (diff) | |
parent | 554ea4b8bd5b927535dcd0a724d06410231589ad (diff) | |
download | rust-libc-ac930a2536e430e745bfc1747285b38192f75cee.tar.gz |
Merge pull request #1844 from asomers/CTL_P1003_1B_MAXID
Deprecate CTL_P1003_1B_MAXID
-rw-r--r-- | libc-test/build.rs | 4 | ||||
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/mod.rs | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index ed1b176bbf..04cc19c6c7 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1824,6 +1824,10 @@ fn test_freebsd(target: &str) { // base system anyway. "CTL_MAXID" | "KERN_MAXID" | "HW_MAXID" | "USER_MAXID" => 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, + // This was renamed in FreeBSD 12.2 and 13 (r352486). "CTL_UNSPEC" | "CTL_SYSCTL" => true, diff --git a/src/unix/bsd/freebsdlike/freebsd/mod.rs b/src/unix/bsd/freebsdlike/freebsd/mod.rs index 4b224d0573..1ca003959c 100644 --- a/src/unix/bsd/freebsdlike/freebsd/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/mod.rs @@ -1056,6 +1056,7 @@ pub const HW_MAXID: ::c_int = 13; #[deprecated(since = "0.2.54", note = "Removed in FreeBSD 11")] pub const USER_MAXID: ::c_int = 21; #[doc(hidden)] +#[deprecated(since = "0.2.74", note = "Removed in FreeBSD 13")] pub const CTL_P1003_1B_MAXID: ::c_int = 26; pub const MSG_NOTIFICATION: ::c_int = 0x00002000; |