Skip to content

Commit c8751d2

Browse files
committed
Auto merge of #2596 - semarie:openbsd-ev_sysflags, r=Amanieu
EV_SYSFLAGS changed value on upcoming OpenBSD 7.1 Mark `EV_SYSFLAGS` deprecated and ignore it on tests. The value changed on upcoming OpenBSD 7.1. Note I don't find [any real usage](https://codesearch.debian.net/search?q=EV_SYSFLAGS&literal=1) of the value in code (outside libc copying/redefinition in Rust, Go or Python code).
2 parents 4b8841a + ef1787a commit c8751d2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libc-test/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ fn test_openbsd(target: &str) {
486486
"KERN_USERMOUNT" | "KERN_ARND" => true,
487487
// Good chance it's going to be wrong depending on the host release
488488
"KERN_MAXID" | "NET_RT_MAXID" => true,
489+
"EV_SYSFLAGS" => true,
489490
_ => false,
490491
}
491492
});

src/unix/bsd/netbsdlike/openbsd/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1173,7 +1173,9 @@ pub const EV_DISPATCH: u16 = 0x80;
11731173
pub const EV_FLAG1: u16 = 0x2000;
11741174
pub const EV_ERROR: u16 = 0x4000;
11751175
pub const EV_EOF: u16 = 0x8000;
1176-
pub const EV_SYSFLAGS: u16 = 0xf000;
1176+
1177+
#[deprecated(since = "0.2.113", note = "Not stable across OS versions")]
1178+
pub const EV_SYSFLAGS: u16 = 0xf800;
11771179

11781180
pub const NOTE_LOWAT: u32 = 0x00000001;
11791181
pub const NOTE_EOF: u32 = 0x00000002;

0 commit comments

Comments
 (0)