]> git.proxmox.com Git - qemu.git/commit
fix build error on ARM due to wrong glibc check
authorJohn Spencer <maillist-qemu@barfooze.de>
Mon, 10 Dec 2012 06:59:44 +0000 (07:59 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Tue, 18 Dec 2012 16:21:13 +0000 (17:21 +0100)
commite12cdb1b4055530c61fe99683d256c42e9e62ac8
tree9085ebe285fe05e3e3d471855dd8b0819fbf46f3
parent887eb29930a7b48e46d16916cb050d114016f143
fix build error on ARM due to wrong glibc check

the test for glibc < 2 "succeeds" wrongly for any non-glibc C library,
and breaks the build on musl libc.
we must first test if __GLIBC__ is defined at all, before using it
unconditionally.

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