Skip to content

Commit 8a53df9

Browse files
authored
Auto merge of rust-lang#312 - nbaksalyar:master, r=alexcrichton
Fix semaphores on Solaris/Illumos This adds `sem_t` structure introduced in rust-lang/libc#309 and fixes compilation on Solaris.
2 parents 9ae6227 + a1c6ad7 commit 8a53df9

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/unix/solaris/mod.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,14 @@ s! {
300300
pub int_p_sign_posn: ::c_char,
301301
pub int_n_sign_posn: ::c_char,
302302
}
303+
304+
pub struct sem_t {
305+
pub sem_count: u32,
306+
pub sem_type: u16,
307+
pub sem_magic: u16,
308+
pub sem_pad1: [u64; 3],
309+
pub sem_pad2: [u64; 2]
310+
}
303311
}
304312

305313
pub const LC_CTYPE: ::c_int = 0;

0 commit comments

Comments
 (0)