diff --git a/framework_lib/src/smbios.rs b/framework_lib/src/smbios.rs index 2c5aa0a..d01e340 100644 --- a/framework_lib/src/smbios.rs +++ b/framework_lib/src/smbios.rs @@ -268,6 +268,7 @@ pub fn get_platform() -> Option { platform } +#[cfg(target_os = "freebsd")] fn kenv_get(name: &str) -> nix::Result { use libc::{c_int, KENV_GET, KENV_MVALLEN}; use nix::errno::Errno;