Skip to content

Commit 3c1b0ee

Browse files
committed
distinguish between solaris and illumos for shmid_ds
1 parent a7c0dcf commit 3c1b0ee

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/unix/solarish/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ s! {
220220
pub struct shmid_ds {
221221
pub shm_perm: ipc_perm,
222222
pub shm_segsz: ::size_t,
223+
#[cfg(target_os = "illumos")]
224+
pub shm_amp: *mut ::c_void,
225+
#[cfg(target_os = "solaris")]
223226
pub shm_flags: ::uintptr_t,
224227
pub shm_lkcnt: ::c_ushort,
225228
pub shm_lpid: ::pid_t,
@@ -229,9 +232,15 @@ s! {
229232
pub shm_atime: ::time_t,
230233
pub shm_dtime: ::time_t,
231234
pub shm_ctime: ::time_t,
235+
#[cfg(target_os = "illumos")]
236+
pub shm_pad4: [i64; 4],
237+
#[cfg(target_os = "solaris")]
232238
pub shm_amp: *mut ::c_void,
239+
#[cfg(target_os = "solaris")]
233240
pub shm_gransize: u64,
241+
#[cfg(target_os = "solaris")]
234242
pub shm_allocated: u64,
243+
#[cfg(target_os = "solaris")]
235244
pub shm_pad4: [i64; 1],
236245
}
237246

0 commit comments

Comments
 (0)