[libvirt] [PATCH] Fix commandhelper build on win32

Daniel P. Berrange posted 1 patch 6 years, 7 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/20170921075704.12899-1-berrange@redhat.com
tests/commandhelper.c | 2 ++
1 file changed, 2 insertions(+)
[libvirt] [PATCH] Fix commandhelper build on win32
Posted by Daniel P. Berrange 6 years, 7 months ago
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@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

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