diff mbox series

tests: domaincapstest: Fix build on mingw

Message ID 7cd63604cf2bcf2231b6ca4ee5d29233d5caa23a.1552927373.git.crobinso@redhat.com
State Accepted
Commit 7cd63604cf2bcf2231b6ca4ee5d29233d5caa23a
Headers show
Series tests: domaincapstest: Fix build on mingw | expand

Commit Message

Cole Robinson March 18, 2019, 4:43 p.m. UTC
fillStringValues is only used if WITH_QEMU || WITH_BHYVE

Signed-off-by: Cole Robinson <crobinso@redhat.com>

---
Pushed under build break rule

 tests/domaincapstest.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.21.0

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
diff mbox series

Patch

diff --git a/tests/domaincapstest.c b/tests/domaincapstest.c
index 1aa8c023a2..2cccfbc8e2 100644
--- a/tests/domaincapstest.c
+++ b/tests/domaincapstest.c
@@ -24,6 +24,7 @@ 
 
 #define VIR_FROM_THIS VIR_FROM_NONE
 
+#if WITH_QEMU || WITH_BHYVE
 static int ATTRIBUTE_SENTINEL
 fillStringValues(virDomainCapsStringValuesPtr values, ...)
 {
@@ -44,6 +45,7 @@  fillStringValues(virDomainCapsStringValuesPtr values, ...)
 
     return ret;
 }
+#endif /* WITH_QEMU || WITH_BHYVE */
 
 #if WITH_QEMU
 # include "testutilsqemu.h"