aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/stdbool.h
diff options
context:
space:
mode:
Diffstat (limited to 'xen/include/xen/stdbool.h')
-rw-r--r--xen/include/xen/stdbool.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/xen/include/xen/stdbool.h b/xen/include/xen/stdbool.h
new file mode 100644
index 0000000000..2eecd52a18
--- /dev/null
+++ b/xen/include/xen/stdbool.h
@@ -0,0 +1,13 @@
+#ifndef __XEN_STDBOOL_H__
+#define __XEN_STDBOOL_H__
+
+#if defined(__OpenBSD__) || defined(__NetBSD__)
+# define bool _Bool
+# define true 1
+# define false 0
+# define __bool_true_false_are_defined 1
+#else
+# include <stdbool.h>
+#endif
+
+#endif /* __XEN_STDBOOL_H__ */