From 968fc147383857fda0fe2e77c2dcfc76c549592f Mon Sep 17 00:00:00 2001 From: Michael Neumann Date: Tue, 16 Jun 2015 13:41:54 +0200 Subject: [PATCH] Fix build for DragonFly BSD --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index db01478..f9d3b90 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -114,7 +114,7 @@ extern crate libc; pub use libc::{uid_t, gid_t}; -#[cfg(any(target_os = "macos", target_os = "freebsd"))] +#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly"))] use libc::{c_char, time_t}; #[cfg(target_os = "linux")] use libc::c_char; @@ -153,7 +153,7 @@ pub trait Users { fn get_current_username(&mut self) -> Option; } -#[cfg(any(target_os = "macos", target_os = "freebsd"))] +#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly"))] #[repr(C)] struct c_passwd { pub pw_name: *const c_char, // user name