Skip to content

Commit

Permalink
distinguish between solaris and illumos for shmid_ds
Browse files Browse the repository at this point in the history
  • Loading branch information
psumbera committed Nov 22, 2019
1 parent a7c0dcf commit 3c1b0ee
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/unix/solarish/mod.rs
Expand Up @@ -220,6 +220,9 @@ s! {
pub struct shmid_ds {
pub shm_perm: ipc_perm,
pub shm_segsz: ::size_t,
#[cfg(target_os = "illumos")]
pub shm_amp: *mut ::c_void,
#[cfg(target_os = "solaris")]
pub shm_flags: ::uintptr_t,
pub shm_lkcnt: ::c_ushort,
pub shm_lpid: ::pid_t,
Expand All @@ -229,9 +232,15 @@ s! {
pub shm_atime: ::time_t,
pub shm_dtime: ::time_t,
pub shm_ctime: ::time_t,
#[cfg(target_os = "illumos")]
pub shm_pad4: [i64; 4],
#[cfg(target_os = "solaris")]
pub shm_amp: *mut ::c_void,
#[cfg(target_os = "solaris")]
pub shm_gransize: u64,
#[cfg(target_os = "solaris")]
pub shm_allocated: u64,
#[cfg(target_os = "solaris")]
pub shm_pad4: [i64; 1],
}

Expand Down

0 comments on commit 3c1b0ee

Please sign in to comment.