Skip to content

Commit

Permalink
fix to build on OS X as well as on ARM targets
Browse files Browse the repository at this point in the history
  • Loading branch information
Akos Vandra committed Mar 21, 2018
1 parent 525c0df commit 90847cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ impl PamEnvList {
}
}

#[cfg(target_os = "linux")]
impl Drop for PamEnvList {
fn drop(&mut self) {
unsafe { pam::raw::pam_misc_drop_env(self.ptr as *mut *mut i8) };
unsafe { pam::raw::pam_misc_drop_env(self.ptr as *mut *mut c_char) };
}
}

0 comments on commit 90847cf

Please sign in to comment.