From: Fredrik Fornwall Date: Wed, 28 Jun 2017 22:03:16 +0000 (+0200) Subject: Unified headers: Update pwd.h patch X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/6dad78cb06149e82741c2ed045398163b6ca1e47?ds=inline Unified headers: Update pwd.h patch --- diff --git a/ndk_patches_unified/pwd.h.patch b/ndk_patches_unified/pwd.h.patch index 1ac8ec3f..2d39b85b 100644 --- a/ndk_patches_unified/pwd.h.patch +++ b/ndk_patches_unified/pwd.h.patch @@ -18,10 +18,12 @@ diff -u -r /home/fornwall/lib/android-ndk/sysroot/usr/include/pwd.h ./usr/includ #endif /* __ANDROID_API__ >= 26 */ -@@ -99,6 +100,52 @@ +@@ -99,6 +100,54 @@ int getpwuid_r(uid_t, struct passwd*, char*, size_t, struct passwd**) __INTRODUCED_IN(12); #endif /* __ANDROID_API__ >= 12 */ ++int access(const char* __path, int __mode); ++ +static void android_setup_pwd(struct passwd* pw) { + static char realpath_buffer[4096/*PATH_MAX*/]; + char* result = realpath("/data/data/com.termux/files/home/.termux/shell", realpath_buffer);