mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-06 13:29:56 -05:00
Use autoconf detected define for getgroups() type.
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@422 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
d5ce3ecef2
commit
72795fcaa6
5 changed files with 16 additions and 3 deletions
|
|
@ -773,7 +773,7 @@ finish:
|
|||
/* Check the current user is member of the specified group */
|
||||
int pa_uid_in_group(const char *name, gid_t *gid) {
|
||||
gid_t *gids, tgid;
|
||||
long n = sysconf(_SC_NGROUPS_MAX);
|
||||
GETGROUPS_T n = sysconf(_SC_NGROUPS_MAX);
|
||||
int r = -1, i;
|
||||
|
||||
assert(n > 0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue