--- ./usr/include/grp.h.orig 2022-11-09 21:58:45.468821763 +0100 +++ ./usr/include/grp.h 2022-11-09 22:02:55.124538470 +0100 @@ -50,21 +50,15 @@ struct group* getgrgid(gid_t __gid); struct group* getgrnam(const char* __name); -/* Note: Android has thousands and thousands of ids to iterate through. */ - -#if __ANDROID_API__ >= 26 -struct group* getgrent(void) __INTRODUCED_IN(26); - -void setgrent(void) __INTRODUCED_IN(26); -void endgrent(void) __INTRODUCED_IN(26); -#endif /* __ANDROID_API__ >= 26 */ - - #if __ANDROID_API__ >= 24 int getgrgid_r(gid_t __gid, struct group* __group, char* __buf, size_t __n, struct group** __result) __INTRODUCED_IN(24); int getgrnam_r(const char* __name, struct group* __group, char* __buf, size_t __n, struct group** __result) __INTRODUCED_IN(24); #endif /* __ANDROID_API__ >= 24 */ +static struct group* getgrent(void) { return 0; } +static void setgrent(void) {} +static void endgrent(void) {} + int getgrouplist(const char* __user, gid_t __group, gid_t* __groups, int* __group_count); int initgroups(const char* __user, gid_t __group);