[libvirt] [PATCH] Fix commandhelper build on win32

Daniel P. Berrange berrange at redhat.com
Thu Sep 21 07:57:04 UTC 2017


For win32 we need EXIT_AM_SKIP which is in testutils.h. We must
define NO_LIBVIRT to prevent replacement of fprintf with
virFilePrintf as we can't link to libvirt_util.la

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---

Pushed as a build fix

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

diff --git a/tests/commandhelper.c b/tests/commandhelper.c
index e9e6353f3..1da2834aa 100644
--- a/tests/commandhelper.c
+++ b/tests/commandhelper.c
@@ -28,6 +28,8 @@
 #include <sys/stat.h>
 
 #include "internal.h"
+#define NO_LIBVIRT
+#include "testutils.h"
 
 #ifndef WIN32
 
-- 
2.13.5




More information about the libvir-list mailing list