aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/bsdload.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-06-13 15:10:28 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-06-13 15:10:28 +0000
commite99a22cc20259ee3223d3ba9064ee61cf37d3e7b (patch)
tree10bbaa9b3a364cc7e59d942c9b6c3549792326fe /bsd-user/bsdload.c
parent95bed643670402b56ddfaf2764caa6d4316158fe (diff)
downloadqemu-e99a22cc20259ee3223d3ba9064ee61cf37d3e7b.zip
qemu-e99a22cc20259ee3223d3ba9064ee61cf37d3e7b.tar.gz
qemu-e99a22cc20259ee3223d3ba9064ee61cf37d3e7b.tar.bz2
Avoid collision with system NGROUPS definition
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'bsd-user/bsdload.c')
-rw-r--r--bsd-user/bsdload.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bsd-user/bsdload.c b/bsd-user/bsdload.c
index 3c3a047..05fd20a 100644
--- a/bsd-user/bsdload.c
+++ b/bsd-user/bsdload.c
@@ -10,7 +10,7 @@
#include "qemu.h"
-#define NGROUPS 32
+#define TARGET_NGROUPS 32
/* ??? This should really be somewhere else. */
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 */
int ngroup;
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++) {
if(grouplist[i] == g) {
return 1;