diff --git a/library/std/src/os/freebsd/fs.rs b/library/std/src/os/freebsd/fs.rs index 1eda8690d5d..260e0a38d45 100644 --- a/library/std/src/os/freebsd/fs.rs +++ b/library/std/src/os/freebsd/fs.rs @@ -143,11 +143,11 @@ fn st_gen(&self) -> u32 { fn st_flags(&self) -> u32 { self.as_inner().as_inner().st_flags as u32 } - #[cfg(freebsd12)] + #[cfg(not(freebsd11))] fn st_lspare(&self) -> u32 { - panic!("st_lspare not supported with FreeBSD 12 ABI"); + panic!("st_lspare not supported with FreeBSD 12+ ABI"); } - #[cfg(not(freebsd12))] + #[cfg(freebsd11)] fn st_lspare(&self) -> u32 { self.as_inner().as_inner().st_lspare as u32 }