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,7 +10,7 @@ | ||
| 10 | 10 | ||
| 11 | #include "qemu.h" | 11 | #include "qemu.h" |
| 12 | 12 | ||
| 13 | -#define NGROUPS 32 | 13 | +#define TARGET_NGROUPS 32 |
| 14 | 14 | ||
| 15 | /* ??? This should really be somewhere else. */ | 15 | /* ??? This should really be somewhere else. */ |
| 16 | abi_long memcpy_to_target(abi_ulong dest, const void *src, | 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,9 +31,9 @@ static int in_group_p(gid_t g) | ||
| 31 | /* return TRUE if we're in the specified group, FALSE otherwise */ | 31 | /* return TRUE if we're in the specified group, FALSE otherwise */ |
| 32 | int ngroup; | 32 | int ngroup; |
| 33 | int i; | 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 | for(i = 0; i < ngroup; i++) { | 37 | for(i = 0; i < ngroup; i++) { |
| 38 | if(grouplist[i] == g) { | 38 | if(grouplist[i] == g) { |
| 39 | return 1; | 39 | return 1; |