From a1c6ad770656c351a1c99bc6cf871259508c9a31 Mon Sep 17 00:00:00 2001 From: Nikita Baksalyar Date: Fri, 10 Jun 2016 05:53:22 +0500 Subject: [PATCH] Fix compilation on Solaris/Illumos --- src/unix/solaris/mod.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/unix/solaris/mod.rs b/src/unix/solaris/mod.rs index 82a7f6e3..f2b94da2 100644 --- a/src/unix/solaris/mod.rs +++ b/src/unix/solaris/mod.rs @@ -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;