git: 8bebb7024d64 - stable/12 - MFC r368415: Properly define the bool type in the BSD kernel shim.
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Dec 28 13:18:35 UTC 2020
The branch stable/12 has been updated by hselasky:
URL: https://cgit.FreeBSD.org/src/commit/?id=8bebb7024d64859082e0bfbc9be6e42672543d16
commit 8bebb7024d64859082e0bfbc9be6e42672543d16
Author: Hans Petter Selasky <hselasky at FreeBSD.org>
AuthorDate: 2020-12-07 16:08:31 +0000
Commit: Hans Petter Selasky <hselasky at FreeBSD.org>
CommitDate: 2020-12-28 13:18:00 +0000
MFC r368415:
Properly define the bool type in the BSD kernel shim.
Sponsored by: Mellanox Technologies // NVIDIA Networking
---
stand/kshim/bsd_kernel.h | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/stand/kshim/bsd_kernel.h b/stand/kshim/bsd_kernel.h
index 1297eddc69a1..882b02c0d85d 100644
--- a/stand/kshim/bsd_kernel.h
+++ b/stand/kshim/bsd_kernel.h
@@ -256,7 +256,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 */
More information about the dev-commits-src-all
mailing list