]> git.proxmox.com Git - qemu.git/commit - linux-user/syscall.c
linux-user/syscall.c: remove wrong forward decl of setgroups()
authorJohn Spencer <maillist-qemu@barfooze.de>
Mon, 10 Dec 2012 06:59:46 +0000 (07:59 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 18 Dec 2012 16:22:31 +0000 (17:22 +0100)
commitc56dc774242f902e51e2343f4472e742ef2b7838
treed14cff7271623cf7e00bf4f307cb19c9289b16e3
parente12cdb1b4055530c61fe99683d256c42e9e62ac8
linux-user/syscall.c: remove wrong forward decl of setgroups()

this declaration is wrong:
the correct prototype on linux is:
int setgroups(size_t size, const gid_t *list);

since by default musl libc exposes this symbol in unistd.h
additionally to grp.h, the wrong declaration causes a build error.

the proper fix is to simply include the correct header.

Signed-off-by: John Spencer <maillist-qemu@barfooze.de>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
linux-user/syscall.c