]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
build: fix vircommand build on mingw
authorEric Blake <eblake@redhat.com>
Fri, 15 Feb 2013 20:13:47 +0000 (13:13 -0700)
committerEric Blake <eblake@redhat.com>
Fri, 15 Feb 2013 20:16:46 +0000 (13:16 -0700)
commitec2cc0f86045f69d00043116fdfe403beb05559b
tree14bab2132530b979b8ae88f7415b78fa9e35b6a8
parentec8a2d0327ee214111bca04c39ab61a9fc247f28
build: fix vircommand build on mingw

  CC       libvirt_util_la-vircommand.lo
../../src/util/vircommand.c:2358:1: error: 'virCommandHandshakeChild' defined but not used [-Werror=unused-function]

The function is only implemented inside #ifndef WIN32.

* src/util/vircommand.c (virCommandHandshakeChild): Hoist earlier,
so that win32 build doesn't hit an unused forward declaration.
src/util/vircommand.c