0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-13 14:09:19 +00:00
termux-packages/root-packages/bindfs/getpwent.patch
Tee KOBAYASHI db252bdac2 bindfs: Fix build for Clang 16
%ci:no-build
2023-04-14 07:07:01 +09:00

23 lines
543 B
Diff

--- a/src/userinfo.c 2021-02-15 04:35:51.000000000 +0100
+++ b/src/userinfo.c 2021-12-18 10:33:46.323685173 +0100
@@ -100,6 +100,11 @@
static int rebuild_uid_cache()
{
+#ifdef __ANDROID__
+ /* Not supported on Android. */
+ return 0;
+#else
+
/* We're holding the lock, so we have mutual exclusion on getpwent and getgrent too. */
struct passwd *pw;
struct uid_cache_entry *ent;
@@ -142,6 +147,7 @@
endpwent();
clear_uid_cache();
return 0;
+#endif /* __ANDROID__ */
}
static int rebuild_gid_cache()