Skip to content

Commit

Permalink
Auto merge of #28598 - semarie:openbsd-unbreak, r=alexcrichton
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Sep 24, 2015
2 parents 4f15e46 + 3b42b60 commit f0666b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/liblibc/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f0666b4

Please sign in to comment.