Skip to content

Commit

Permalink
Auto merge of #287 - alexcrichton:no-util-on-musl, r=alexcrichton
Browse files Browse the repository at this point in the history
Don't link util on musl, consolidate #[link]
  • Loading branch information
bors committed May 13, 2016
2 parents 81e3af2 + 33fef10 commit b14c5c3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/unix/notbsd/linux/mips.rs
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ pub const RTLD_NOLOAD: ::c_int = 0x8;

pub const SYS_gettid: ::c_long = 4222; // Valid for O32

#[link(name = "util")]
extern {
pub fn sysctl(name: *mut ::c_int,
namelen: ::c_int,
Expand Down
1 change: 0 additions & 1 deletion src/unix/notbsd/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ extern {
static mut program_invocation_short_name: *mut ::c_char;
}

#[link(name = "util")]
extern {
pub fn shm_open(name: *const c_char, oflag: ::c_int,
mode: mode_t) -> ::c_int;
Expand Down
1 change: 1 addition & 0 deletions src/unix/notbsd/linux/other/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ cfg_if! {
}
}

#[link(name = "util")]
extern {
pub fn sysctl(name: *mut ::c_int,
namelen: ::c_int,
Expand Down

0 comments on commit b14c5c3

Please sign in to comment.