Auto merge of #312 - nbaksalyar:master, r=alexcrichton

Fix semaphores on Solaris/Illumos

This adds `sem_t` structure introduced in https://github.com/rust-lang/libc/pull/309 and fixes compilation on Solaris.
This commit is contained in:
bors 2016-06-10 00:51:48 -07:00 committed by GitHub
commit 8a53df9f36
1 changed files with 8 additions and 0 deletions

View File

@ -300,6 +300,14 @@ s! {
pub int_p_sign_posn: ::c_char,
pub int_n_sign_posn: ::c_char,
}
pub struct sem_t {
pub sem_count: u32,
pub sem_type: u16,
pub sem_magic: u16,
pub sem_pad1: [u64; 3],
pub sem_pad2: [u64; 2]
}
}
pub const LC_CTYPE: ::c_int = 0;