Commit e99a22cc20259ee3223d3ba9064ee61cf37d3e7b
1 parent
95bed643
Avoid collision with system NGROUPS definition
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Showing
1 changed file
with
3 additions
and
3 deletions
bsd-user/bsdload.c
| ... | ... | @@ -10,7 +10,7 @@ |
| 10 | 10 | |
| 11 | 11 | #include "qemu.h" |
| 12 | 12 | |
| 13 | -#define NGROUPS 32 | |
| 13 | +#define TARGET_NGROUPS 32 | |
| 14 | 14 | |
| 15 | 15 | /* ??? This should really be somewhere else. */ |
| 16 | 16 | abi_long memcpy_to_target(abi_ulong dest, const void *src, |
| ... | ... | @@ -31,9 +31,9 @@ static int in_group_p(gid_t g) |
| 31 | 31 | /* return TRUE if we're in the specified group, FALSE otherwise */ |
| 32 | 32 | int ngroup; |
| 33 | 33 | int i; |
| 34 | - gid_t grouplist[NGROUPS]; | |
| 34 | + gid_t grouplist[TARGET_NGROUPS]; | |
| 35 | 35 | |
| 36 | - ngroup = getgroups(NGROUPS, grouplist); | |
| 36 | + ngroup = getgroups(TARGET_NGROUPS, grouplist); | |
| 37 | 37 | for(i = 0; i < ngroup; i++) { |
| 38 | 38 | if(grouplist[i] == g) { |
| 39 | 39 | return 1; | ... | ... |