From 2bdbddcaae4e21e45f3c9527909fda757497060e Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 11 Oct 2017 09:22:46 -0700 Subject: [PATCH] Add `ucred` on Android --- src/unix/notbsd/android/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/unix/notbsd/android/mod.rs b/src/unix/notbsd/android/mod.rs index 892532c0..065a5bd8 100644 --- a/src/unix/notbsd/android/mod.rs +++ b/src/unix/notbsd/android/mod.rs @@ -168,6 +168,12 @@ s! { pub ssi_addr_lsb: ::uint16_t, _pad: [::uint8_t; 46], } + + pub struct ucred { + pub pid: ::pid_t, + pub uid: ::uid_t, + pub gid: ::gid_t, + } } pub const O_TRUNC: ::c_int = 512;