diff options
| author | Sébastien Marie <semarie@users.noreply.github.com> | 2015-09-23 06:39:42 +0200 |
|---|---|---|
| committer | Sébastien Marie <semarie@users.noreply.github.com> | 2015-09-23 09:39:50 +0200 |
| commit | 3b42b60bf675214d668b92b4791d58b63b143f40 (patch) | |
| tree | 8de0dd9b46f4917f7eb4f64f8273556fac340c10 /src/liblibc | |
| parent | cefe5f25b27b27c9d2f8685a7e16c852f9f77f60 (diff) | |
| download | rust-3b42b60bf675214d668b92b4791d58b63b143f40.tar.gz rust-3b42b60bf675214d668b92b4791d58b63b143f40.zip | |
unbreak openbsd after netbsd integration
separate use code between openbsd/netbsd. netbsd use c_int and c_uint, but openbsd not, resulting a unused_import error.
Diffstat (limited to 'src/liblibc')
| -rw-r--r-- | src/liblibc/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/liblibc/lib.rs b/src/liblibc/lib.rs index fc6bd6c0167..2ee69543c3c 100644 --- a/src/liblibc/lib.rs +++ b/src/liblibc/lib.rs @@ -1683,10 +1683,12 @@ pub mod types { pub mod posix01 { use types::common::c95::{c_void}; use types::common::c99::{uint32_t, uint64_t}; - use types::os::arch::c95::{c_int, c_uint, c_long, time_t}; + use types::os::arch::c95::{c_long, time_t}; use types::os::arch::posix88::{dev_t, gid_t}; use types::os::arch::posix88::{mode_t, off_t}; use types::os::arch::posix88::{uid_t}; + #[cfg(target_os = "netbsd")] + use types::os::arch::c95::{c_int, c_uint}; pub type nlink_t = uint32_t; pub type blksize_t = uint32_t; |
