Skip to content
Snippets Groups Projects
Commit 8a53df9f authored by bors's avatar bors Committed by GitHub
Browse files

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.
parents 9ae6227b a1c6ad77
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment