Revision e99a22cc

b/bsd-user/bsdload.c
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 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;

Also available in: Unified diff