Date: Mon, 28 Dec 2020 13:18:35 GMT From: Hans Petter Selasky <hselasky@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 8bebb7024d64 - stable/12 - MFC r368415: Properly define the bool type in the BSD kernel shim. Message-ID: <202012281318.0BSDIZrQ035520@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@FreeBSD.org> AuthorDate: 2020-12-07 16:08:31 +0000 Commit: Hans Petter Selasky <hselasky@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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202012281318.0BSDIZrQ035520>