From: David Scott Date: Wed, 11 Nov 2009 17:41:49 +0000 (+0000) Subject: Work-around the missing XS_RESTRICT decl in xen-unstable X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=71d9de4ba1085a26bb8d0844552d3d5f39a87d28;p=xcp%2Fxen-api-libs.git Work-around the missing XS_RESTRICT decl in xen-unstable This message is only used by http://xenbits.xen.org/xapi/qemu-xen-3.4.pq.hg?file/e89cb5405f51/depriv_qemu Signed-off-by: David Scott --- diff --git a/xb/xb_stubs.c b/xb/xb_stubs.c index cb23ad5..bdacbaf 100644 --- a/xb/xb_stubs.c +++ b/xb/xb_stubs.c @@ -30,6 +30,13 @@ #define u32 uint32_t #include +/* XS_RESTRICT is defined in + http://xenbits.xen.org/xapi/xen-3.4.pq.hg?file/c01d38e7092a/restrict_xenstored */ +#include "../include/config.h" +#if !HAVE_DECL_XS_RESTRICT +#define XS_RESTRICT 128 +#endif + CAMLprim value stub_get_internal_offset(void) { CAMLparam0();