about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-24 00:02:07 +0000
committerbors <bors@rust-lang.org>2015-09-24 00:02:07 +0000
commitf0666b45dd9adef751340e86badbef4daedb2dc2 (patch)
tree125c274e1a1007035921dd678946190f3183c8a3 /src
parent4f15e465e5e838aa2a57cccf57af241699d68f51 (diff)
parent3b42b60bf675214d668b92b4791d58b63b143f40 (diff)
downloadrust-f0666b45dd9adef751340e86badbef4daedb2dc2.tar.gz
rust-f0666b45dd9adef751340e86badbef4daedb2dc2.zip
Auto merge of #28598 - semarie:openbsd-unbreak, r=alexcrichton
separate use code between openbsd/netbsd

netbsd use c_int and c_uint, but openbsd not, resulting a unused_import
error.

r? @alexcrichton 

problem introduced by #28543 
Diffstat (limited to 'src')
-rw-r--r--src/liblibc/lib.rs4
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;