0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-12-12 14:13:36 +00:00
termux-packages/packages/samba/getgrouplist.patch
Tee KOBAYASHI 808b6a73f9 samba: Fix build with strict C99
%ci:no-build
2023-04-13 01:11:21 +09:00

16 lines
421 B
Diff

https://github.com/termux/termux-packages/issues/15852
--- a/source3/lib/system_smbd.c
+++ b/source3/lib/system_smbd.c
@@ -166,6 +166,10 @@
return ret;
}
#endif /* HAVE_GETGRSET */
+#else /* HAVE_GETGROUPLIST */
+#ifdef __ANDROID__
+int getgrouplist(const char *, gid_t, gid_t *, int *);
+#endif
#endif /* HAVE_GETGROUPLIST */
static int sys_getgrouplist(const char *user, gid_t gid, gid_t *groups, int *grpcnt)