diff options
author | Fredrick Brennan <copypaste@kittens.ph> | 2018-03-03 11:26:40 +0000 |
---|---|---|
committer | Fredrick Brennan <copypaste@kittens.ph> | 2018-03-03 11:26:40 +0000 |
commit | 74c554c39545ed4642a1e93a0bb9ee7d7ee3883a (patch) | |
tree | 34d32caa937f18199c92ce8b3b65920d3e3b246d /src | |
parent | 5f9538d1e2af29901c5e498b6ef408163b5816e8 (diff) | |
download | rust-libc-74c554c39545ed4642a1e93a0bb9ee7d7ee3883a.tar.gz |
Fix build error on stable Rust
Diffstat (limited to 'src')
-rw-r--r-- | src/unix/bsd/mod.rs | 8 | ||||
-rw-r--r-- | src/unix/notbsd/linux/mod.rs | 8 |
2 files changed, 2 insertions, 14 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs index 592e0643a9..c7f670aa58 100644 --- a/src/unix/bsd/mod.rs +++ b/src/unix/bsd/mod.rs @@ -1,4 +1,5 @@ use dox::{mem, Option}; +use unix::group; pub type wchar_t = i32; pub type off_t = i64; @@ -50,13 +51,6 @@ s! { pub pw_fields: ::c_int, } - pub struct group { - pub gr_name: *mut ::c_char, - pub gr_passwd: *mut ::c_char, - pub gr_gid: ::gid_t, - pub gr_mem: *mut *mut ::c_char - } - pub struct ifaddrs { pub ifa_next: *mut ifaddrs, pub ifa_name: *mut ::c_char, diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 729eb312b4..9f4307d814 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -1,6 +1,7 @@ //! Linux-specific definitions for linux-like values use dox::{mem, Option}; +use unix::group; pub type useconds_t = u32; pub type dev_t = u64; @@ -160,13 +161,6 @@ s! { pub pw_shell: *mut ::c_char, } - pub struct group { - pub gr_name: *mut ::c_char, - pub gr_passwd: *mut ::c_char, - pub gr_gid: ::gid_t, - pub gr_mem: *mut *mut ::c_char - } - pub struct spwd { pub sp_namp: *mut ::c_char, pub sp_pwdp: *mut ::c_char, |