Skip to content

Commit

Permalink
EV_SYSFLAGS changed value on upcoming 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
semarie committed Dec 17, 2021
1 parent 4b8841a commit ef1787a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,6 +486,7 @@ fn test_openbsd(target: &str) {
"KERN_USERMOUNT" | "KERN_ARND" => true,
// Good chance it's going to be wrong depending on the host release
"KERN_MAXID" | "NET_RT_MAXID" => true,
"EV_SYSFLAGS" => true,
_ => false,
}
});
Expand Down
4 changes: 3 additions & 1 deletion src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,9 @@ pub const EV_DISPATCH: u16 = 0x80;
pub const EV_FLAG1: u16 = 0x2000;
pub const EV_ERROR: u16 = 0x4000;
pub const EV_EOF: u16 = 0x8000;
pub const EV_SYSFLAGS: u16 = 0xf000;

#[deprecated(since = "0.2.113", note = "Not stable across OS versions")]
pub const EV_SYSFLAGS: u16 = 0xf800;

pub const NOTE_LOWAT: u32 = 0x00000001;
pub const NOTE_EOF: u32 = 0x00000002;
Expand Down

0 comments on commit ef1787a

Please sign in to comment.