[virt-tools-list] [vhostmd 3/3] Fix compilation with xenstore

Jim Fehlig jfehlig at suse.com
Wed Jun 6 21:22:31 UTC 2018


The xenstore transport is worth keeping, so update it to
work with "modern" Xen. By modern I mean something like 4.4
or newer.

Signed-off-by: Jim Fehlig <jfehlig at suse.com>
---
 configure.ac              | 2 +-
 libmetrics/libmetrics.c   | 2 +-
 vhostmd/xenstore-update.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 09ba60f..3f06177 100644
--- a/configure.ac
+++ b/configure.ac
@@ -48,7 +48,7 @@ AC_ARG_WITH([xenstore],
    yes) with_xenstore=true;;
    no) with_xenstore=false;;
    *) AC_MSG_ERROR(bad value ${withval} for --with-xenstore) ;;
-  esac],[AC_CHECK_HEADER(xs.h, with_xenstore=true)])
+  esac],[AC_CHECK_HEADER(xenstore.h, with_xenstore=true)])
 AM_CONDITIONAL(WITH_XENSTORE, test x$with_xenstore = xtrue)
 
 AC_OUTPUT(vhostmd/Makefile
diff --git a/libmetrics/libmetrics.c b/libmetrics/libmetrics.c
index 6d5c26f..81f4d1a 100644
--- a/libmetrics/libmetrics.c
+++ b/libmetrics/libmetrics.c
@@ -31,7 +31,7 @@
 #include <arpa/inet.h>
 #include <libxml/xpath.h>
 #ifdef WITH_XENSTORE
-#include <xs.h>
+#include <xenstore.h>
 #endif
 
 #include "libmetrics.h"
diff --git a/vhostmd/xenstore-update.c b/vhostmd/xenstore-update.c
index f157f60..20fbde1 100644
--- a/vhostmd/xenstore-update.c
+++ b/vhostmd/xenstore-update.c
@@ -28,7 +28,7 @@
 #include <errno.h>
 #include <libxml/parser.h>
 #include <libxml/xpath.h>
-#include <xs.h>
+#include <xenstore.h>
 
 #include "util.h"
 #include "metric.h"
-- 
2.16.3




More information about the virt-tools-list mailing list