Skip to content

Commit

Permalink
Add EINTEGRITY errno and fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzamig committed Jul 21, 2019
1 parent 96ea9c9 commit c2c62cc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,14 @@ cfg_if! {
}
}

#[cfg(not(freebsd13))]
pub const ELAST: ::c_int = 96;
#[cfg(freebsd13)]
pub const ELAST: ::c_int = 97;
cfg_if! {
if #[cfg(not(freebsd13))] {
pub const ELAST: ::c_int = 96;
} else {
pub const EINTEGRITY: ::c_int = 97;
pub const ELAST: ::c_int = 97;
}
}

extern {
pub fn setgrent();
Expand Down

0 comments on commit c2c62cc

Please sign in to comment.