aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xc_private.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-12-11 11:19:27 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-12-11 11:19:27 +0000
commitde8ffdf6a4c4ffeca977836c9a25d11a2a23247f (patch)
treee3eb6dc3eaf4cc0c54d799243acb4000e6bd684b /tools/libxc/xc_private.h
parentc8e857a0aff354ff6404e5f5e237796d98457fb2 (diff)
downloadxen-de8ffdf6a4c4ffeca977836c9a25d11a2a23247f.tar.gz
xen-de8ffdf6a4c4ffeca977836c9a25d11a2a23247f.tar.bz2
xen-de8ffdf6a4c4ffeca977836c9a25d11a2a23247f.zip
libxc: Fix xc_pm.c build by avoiding bogus header includes.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'tools/libxc/xc_private.h')
-rw-r--r--tools/libxc/xc_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h
index 6e49b749a0..ef8e3d2f7a 100644
--- a/tools/libxc/xc_private.h
+++ b/tools/libxc/xc_private.h
@@ -43,6 +43,9 @@
#define INFO 1
#define PROGRESS 0
+/* Force a compilation error if condition is true */
+#define XC_BUILD_BUG_ON(p) ((void)sizeof(struct { int:-!!(p); }))
+
/*
** Define max dirty page cache to permit during save/restore -- need to balance
** keeping cache usage down with CPU impact of invalidating too often.