aboutsummaryrefslogtreecommitdiffstats
path: root/tools/tests
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-11-16 15:48:49 +0000
committerKeir Fraser <keir@xen.org>2011-11-16 15:48:49 +0000
commitb0198fc3f06b2befac9f04cfbdc2d76db72c8572 (patch)
tree53e34c9bbe6599399697d73b74ccab35f2470d15 /tools/tests
parent3e3422bb01fe58333ed0c15894cf3dc8c4a035a2 (diff)
downloadxen-b0198fc3f06b2befac9f04cfbdc2d76db72c8572.tar.gz
xen-b0198fc3f06b2befac9f04cfbdc2d76db72c8572.tar.bz2
xen-b0198fc3f06b2befac9f04cfbdc2d76db72c8572.zip
x86_emulate: Define and use BUG() and bool_t.
Original patch by Jan Beulich <jbeulich@suse.com> Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'tools/tests')
-rw-r--r--tools/tests/x86_emulator/x86_emulate.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/tests/x86_emulator/x86_emulate.c b/tools/tests/x86_emulator/x86_emulate.c
index 2674d556eb..9e1b124410 100644
--- a/tools/tests/x86_emulator/x86_emulate.c
+++ b/tools/tests/x86_emulator/x86_emulate.c
@@ -1,7 +1,13 @@
+#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
+#include <stdlib.h>
#include <string.h>
#include <xen/xen.h>
+typedef bool bool_t;
+
+#define BUG() abort()
+
#include "x86_emulate/x86_emulate.h"
#include "x86_emulate/x86_emulate.c"