[libvirt] [PATCH] tests: domaincapstest: Fix build on mingw

Cole Robinson posted 1 patch 5 years, 1 month ago
Test syntax-check passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/7cd63604cf2bcf2231b6ca4ee5d29233d5caa23a.1552927373.git.crobinso@redhat.com
tests/domaincapstest.c | 2 ++
1 file changed, 2 insertions(+)
[libvirt] [PATCH] tests: domaincapstest: Fix build on mingw
Posted by Cole Robinson 5 years, 1 month ago
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(+)

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"
-- 
2.21.0

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