Add EINTEGRITY errno and fix style

This commit is contained in:
Luca Pizzamiglio 2019-07-21 17:55:11 +02:00
parent 4a74f1e0df
commit bde8b842a4
1 changed files with 8 additions and 4 deletions

View File

@ -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();