mirror of https://github.com/xqemu/xqemu.git
Avoid collision with system NGROUPS definition
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
95bed64367
commit
e99a22cc20
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
#include "qemu.h"
|
#include "qemu.h"
|
||||||
|
|
||||||
#define NGROUPS 32
|
#define TARGET_NGROUPS 32
|
||||||
|
|
||||||
/* ??? This should really be somewhere else. */
|
/* ??? This should really be somewhere else. */
|
||||||
abi_long memcpy_to_target(abi_ulong dest, const void *src,
|
abi_long memcpy_to_target(abi_ulong dest, const void *src,
|
||||||
|
@ -31,9 +31,9 @@ static int in_group_p(gid_t g)
|
||||||
/* return TRUE if we're in the specified group, FALSE otherwise */
|
/* return TRUE if we're in the specified group, FALSE otherwise */
|
||||||
int ngroup;
|
int ngroup;
|
||||||
int i;
|
int i;
|
||||||
gid_t grouplist[NGROUPS];
|
gid_t grouplist[TARGET_NGROUPS];
|
||||||
|
|
||||||
ngroup = getgroups(NGROUPS, grouplist);
|
ngroup = getgroups(TARGET_NGROUPS, grouplist);
|
||||||
for(i = 0; i < ngroup; i++) {
|
for(i = 0; i < ngroup; i++) {
|
||||||
if(grouplist[i] == g) {
|
if(grouplist[i] == g) {
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in New Issue