]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix build with musl libc
authorCarlos Santos <casantos@redhat.com>
Wed, 16 Oct 2019 11:22:13 +0000 (08:22 -0300)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 17 Oct 2019 08:54:32 +0000 (10:54 +0200)
commit44d63ad997216f05f5c7ce005acc308bbdd00458
treed200e85914923148c4b712bbae62c082af7c676c
parentbe2d71f325d0ee1084440809b5aed95f80dc9e24
qemu: fix build with musl libc

On musl libc "stderr" is a preprocessor macro whose expansion leads to
compilation errors:

In file included from qemu/qemu_process.c:66:
qemu/qemu_process.c: In function 'qemuProcessQMPFree':
qemu/qemu_process.c:8418:21: error: expected identifier before '(' token
     VIR_FREE((proc->stderr));
                     ^~~~~~

Prevent this by renaming the homonymous field in the _qemuProcessQMP
struct to "stdErr".

Signed-off-by: Carlos Santos <casantos@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_process.c
src/qemu/qemu_process.h