]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
build: fix mingw build with virCommandReorderFDs
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 22 Aug 2014 08:28:17 +0000 (10:28 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 22 Aug 2014 09:15:59 +0000 (11:15 +0200)
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/vircommand.c
src/util/virutil.c

index 3b3e6f523f00b9f86999391dff68cc440d2b9ee0..1d6dbd91d2b1e01134c43605d08dda95cd60134d 100644 (file)
@@ -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:
  *
index 1d897d9a548dd250a16f7fffe56b61e88f5ba816..2edbec5c5dc510e8befe4ee7b85e96732740da15 100644 (file)
@@ -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 */