From: Martin Kletzander Date: Fri, 22 Aug 2014 08:28:17 +0000 (+0200) Subject: build: fix mingw build with virCommandReorderFDs X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=846edeef52decd40d869053c6cec3cc78fa92e75;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git build: fix mingw build with virCommandReorderFDs Signed-off-by: Martin Kletzander --- diff --git a/src/util/vircommand.c b/src/util/vircommand.c index 3b3e6f523..1d6dbd91d 100644 --- a/src/util/vircommand.c +++ b/src/util/vircommand.c @@ -201,6 +201,8 @@ virCommandFDSet(virCommandPtr cmd, return 0; } +#ifndef WIN32 + static void virCommandReorderFDs(virCommandPtr cmd) { @@ -273,8 +275,6 @@ virCommandReorderFDs(virCommandPtr cmd) return; } -#ifndef WIN32 - /** * virFork: * diff --git a/src/util/virutil.c b/src/util/virutil.c index 1d897d9a5..2edbec5c5 100644 --- a/src/util/virutil.c +++ b/src/util/virutil.c @@ -2397,6 +2397,8 @@ void virUpdateSelfLastChanged(const char *path) } } +#ifndef WIN32 + /** * virGetListenFDs: * @@ -2458,3 +2460,13 @@ virGetListenFDs(void) return nfds; } + +#else /* WIN32 */ + +unsigned int +virGetListenFDs(void) +{ + return 0; +} + +#endif /* WIN32 */