Skip to content

Commit a1c6ad7

Browse files
committed
Fix compilation on Solaris/Illumos
1 parent 9ae6227 commit a1c6ad7

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)