From df25142e39531345b4bd445c026c8b2ff230dafb Mon Sep 17 00:00:00 2001 From: Andy Lowry Date: Thu, 12 Oct 2017 16:31:03 +0100 Subject: [PATCH] Add ucred to musl --- src/unix/notbsd/linux/musl/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/unix/notbsd/linux/musl/mod.rs b/src/unix/notbsd/linux/musl/mod.rs index ab20d4c7..da59c4eb 100644 --- a/src/unix/notbsd/linux/musl/mod.rs +++ b/src/unix/notbsd/linux/musl/mod.rs @@ -72,6 +72,12 @@ s! { pub mem_unit: ::c_uint, pub __reserved: [::c_char; 256], } + + pub struct ucred { + pub pid: ::pid_t, + pub uid: ::uid_t, + pub gid: ::gid_t, + } } pub const SFD_CLOEXEC: ::c_int = 0x080000;