]> xenbits.xensource.com Git - libvirt.git/commit
util: virdaemon: fix compilation on mingw
authorRafael Fonseca <r4f4rfs@gmail.com>
Fri, 27 Mar 2020 17:40:47 +0000 (18:40 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 30 Mar 2020 07:48:22 +0000 (09:48 +0200)
commitc360ea28dc267802690e129fbad08ca2f22a44e9
tree5968be3b87edd67d7e1fea5b6277756874c88f51
parentcab35ae380633eb0099e15427be6f8537a8a9fff
util: virdaemon: fix compilation on mingw

The daemons are not supported on Win32 and therefore were not compiled
in that platform. However, with the daemon code sharing, all the code in
utils *is* compiled and it failed because `waitpid`, `fork`, and
`setsid` are not available. So, as before, let's not build them on
Win32 and make the code more portable by using existing vir* wrappers.

Signed-off-by: Rafael Fonseca <r4f4rfs@gmail.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virdaemon.c