]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix commandhelper build on win32
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 21 Sep 2017 07:55:07 +0000 (08:55 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 21 Sep 2017 07:55:07 +0000 (08:55 +0100)
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>
tests/commandhelper.c

index e9e6353f3f525c28c16608dacd0a07ae619c9fbf..1da2834aa4ef2ab90047221edf7c68b0f086bd66 100644 (file)
@@ -28,6 +28,8 @@
 #include <sys/stat.h>
 
 #include "internal.h"
+#define NO_LIBVIRT
+#include "testutils.h"
 
 #ifndef WIN32