Fix build for DragonFly BSD

This commit is contained in:
Michael Neumann
2015-06-16 13:41:54 +02:00
parent beab642e5a
commit 968fc14738
+2 -2
View File
@@ -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<String>;
}
#[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