From: George Dunlap Subject: [PATCH] tools: Reorder and add includes in libvchan Date: Wed, 7 Mar 2012 17:57:19 +0000 Message-ID: <9d0893cac689bce7b4c2.1331143039@drall.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xensource.com Cc: george.dunlap@eu.citrix.com List-Id: xen-devel@lists.xenproject.org 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 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 #include +#include #include #include #include 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 #include #include -#include struct libxenvchan_ring { /* Pointer into the shared page. Offsets into buffer. */