|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] tools: Reorder and add includes in libvchan
libxenvchan.h includes xen/sys/evtchn.h, which in the XenServer patchqueue
may contain domid_t values. Just re-order the order of includes to make sure
that Xen-defined values make sense to the compiler.
Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
diff --git a/tools/libvchan/init.c b/tools/libvchan/init.c
--- a/tools/libvchan/init.c
+++ b/tools/libvchan/init.c
@@ -41,6 +41,7 @@
#include <fcntl.h>
#include <xs.h>
+#include <xen/xen.h>
#include <xen/sys/evtchn.h>
#include <xen/sys/gntalloc.h>
#include <xen/sys/gntdev.h>
diff --git a/tools/libvchan/libxenvchan.h b/tools/libvchan/libxenvchan.h
--- a/tools/libvchan/libxenvchan.h
+++ b/tools/libvchan/libxenvchan.h
@@ -43,9 +43,9 @@
* compile time, so the macros in ring.h cannot be used to access the rings.
*/
+#include <xenctrl.h>
#include <xen/io/libxenvchan.h>
#include <xen/sys/evtchn.h>
-#include <xenctrl.h>
struct libxenvchan_ring {
/* Pointer into the shared page. Offsets into buffer. */
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |