Skip to content

Commit 2f43f14

Browse files
committed
WIP making changes for FreeBSD 14.0-beta2
1 parent 8dc0a32 commit 2f43f14

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

libc-test/build.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,12 @@ fn test_freebsd(target: &str) {
21962196
// should've been used anywhere anyway.
21972197
"TDF_UNUSED23" => true,
21982198

2199+
// Removed in FreeBSD 14 (git a6b55ee6be1)
2200+
"IFF_KNOWSEPOCH" => true,
2201+
2202+
// Removed in FreeBSD 14 (git 7ff9ae90f0b)
2203+
"IFF_NOGROUP" => true,
2204+
21992205
// FIXME: These are deprecated - remove in a couple of releases.
22002206
// These symbols are not stable across OS-versions. They were
22012207
// changed for FreeBSD 14 in git revisions b62848b0c3f and
@@ -2277,7 +2283,7 @@ fn test_freebsd(target: &str) {
22772283
// Added in freebsd 14.
22782284
"IFCAP_MEXTPG" if Some(14) > freebsd_ver => true,
22792285
// Added in freebsd 13.
2280-
"IFF_KNOWSEPOCH" | "IFCAP_TXTLS4" | "IFCAP_TXTLS6" | "IFCAP_VXLAN_HWCSUM"
2286+
"IFCAP_TXTLS4" | "IFCAP_TXTLS6" | "IFCAP_VXLAN_HWCSUM"
22812287
| "IFCAP_VXLAN_HWTSO" | "IFCAP_TXTLS_RTLMT" | "IFCAP_TXTLS"
22822288
if Some(13) > freebsd_ver =>
22832289
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3172,6 +3172,7 @@ pub const IFF_LOOPBACK: ::c_int = 0x8;
31723172
/// (i) is a point-to-point link
31733173
pub const IFF_POINTOPOINT: ::c_int = 0x10;
31743174
/// (i) calls if_input in net epoch
3175+
#[deprecated(since = "0.2.149", note = "Removed in FreeBSD 14")]
31753176
pub const IFF_KNOWSEPOCH: ::c_int = 0x20;
31763177
/// (d) resources allocated
31773178
pub const IFF_RUNNING: ::c_int = 0x40;
@@ -3219,6 +3220,7 @@ pub const IFF_DYING: ::c_int = 0x200000;
32193220
/// (n) interface is being renamed
32203221
pub const IFF_RENAMING: ::c_int = 0x400000;
32213222
/// interface is not part of any groups
3223+
#[deprecated(since = "0.2.149", note = "Removed in FreeBSD 14")]
32223224
pub const IFF_NOGROUP: ::c_int = 0x800000;
32233225

32243226
/// link invalid/unknown

0 commit comments

Comments
 (0)