diff options
author | Luca Pizzamiglio <luca.pizzamiglio@gmail.com> | 2019-07-21 17:55:11 +0200 |
---|---|---|
committer | Luca Pizzamiglio <luca.pizzamiglio@gmail.com> | 2019-07-21 17:55:11 +0200 |
commit | c2c62cc8a4c275c59eb972da9bbe8270849e0b24 (patch) | |
tree | d280ef783472c62caf5ff7815854aca755d8f2f4 | |
parent | 96ea9c99521180bc4fd4eb07d5d7b699a784fb96 (diff) | |
download | rust-libc-c2c62cc8a4c275c59eb972da9bbe8270849e0b24.tar.gz |
Add EINTEGRITY errno and fix style
-rw-r--r-- | src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs b/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs index c01916955f..464744d140 100644 --- a/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs +++ b/src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs @@ -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(); |