aboutsummaryrefslogtreecommitdiff
path: root/stand
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2020-12-07 16:08:31 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2020-12-07 16:08:31 +0000
commiteb2f5fa4dcbf452b94f8431e51d224f0315ad9a0 (patch)
tree17b8721140dfca06f61badb5e22c350c69f01e9a /stand
parent8bf82b340e59cdc7d6cac49762104d48cebd2283 (diff)
downloadsrc-eb2f5fa4dcbf452b94f8431e51d224f0315ad9a0.tar.gz
src-eb2f5fa4dcbf452b94f8431e51d224f0315ad9a0.zip
Properly define the bool type in the BSD kernel shim.
MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking
Notes
Notes: svn path=/head/; revision=368415
Diffstat (limited to 'stand')
-rw-r--r--stand/kshim/bsd_kernel.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/stand/kshim/bsd_kernel.h b/stand/kshim/bsd_kernel.h
index 5fb9291ac132..3ec1f54f74e4 100644
--- a/stand/kshim/bsd_kernel.h
+++ b/stand/kshim/bsd_kernel.h
@@ -274,7 +274,12 @@ typedef uint8_t *bus_space_handle_t;
typedef int bus_dma_filter_t(void *, bus_addr_t);
typedef void bus_dma_lock_t(void *, bus_dma_lock_op_t);
-typedef uint32_t bool;
+#ifndef __bool_true_false_are_defined
+#define __bool_true_false_are_defined
+typedef _Bool bool;
+#define true 1
+#define false 0
+#endif
/* SYSINIT API */