Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
Notes:
pushed as a build-breaker
src/util/vircommand.c | 4 ++--
src/util/virutil.c | 12 ++++++++++++
2 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/src/util/vircommand.c b/src/util/vircommand.c
index 3b3e6f5..1d6dbd9 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 1d897d9..2edbec5 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 */
--
2.0.4