diff --git a/Cargo.toml b/Cargo.toml index 3b39449..952a0a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -41,7 +41,7 @@ scopeguard = "1.2.0" url = "2.4.1" once_cell = "1.18.0" -[target.'cfg(any(target_os = "freebsd", target_os = "openbsd", target_os = "netbsd"))'.dependencies] +[target.'cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))'.dependencies] once_cell = "1.7.2" [target.'cfg(windows)'.dependencies] diff --git a/src/freedesktop.rs b/src/freedesktop.rs index c926990..90f819e 100644 --- a/src/freedesktop.rs +++ b/src/freedesktop.rs @@ -678,7 +678,7 @@ fn get_mount_points() -> Result, Error> { Ok(result) } -#[cfg(any(target_os = "freebsd", target_os = "openbsd"))] +#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "openbsd"))] fn get_mount_points() -> Result, Error> { use once_cell::sync::Lazy; use std::sync::Mutex;