Skip to content

Commit c2c62cc

Browse files
committed
Add EINTEGRITY errno and fix style
1 parent 96ea9c9 commit c2c62cc

File tree

1 file changed

+8
-4
lines changed
  • src/unix/bsd/freebsdlike/freebsd/freebsd12

1 file changed

+8
-4
lines changed

src/unix/bsd/freebsdlike/freebsd/freebsd12/mod.rs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,14 @@ cfg_if! {
190190
}
191191
}
192192

193-
#[cfg(not(freebsd13))]
194-
pub const ELAST: ::c_int = 96;
195-
#[cfg(freebsd13)]
196-
pub const ELAST: ::c_int = 97;
193+
cfg_if! {
194+
if #[cfg(not(freebsd13))] {
195+
pub const ELAST: ::c_int = 96;
196+
} else {
197+
pub const EINTEGRITY: ::c_int = 97;
198+
pub const ELAST: ::c_int = 97;
199+
}
200+
}
197201

198202
extern {
199203
pub fn setgrent();

0 commit comments

Comments
 (0)