Properly define the bool type in the BSD kernel shim.

MFC after:	1 week
Sponsored by:	Mellanox Technologies // NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2020-12-07 16:08:31 +00:00
parent 8bf82b340e
commit eb2f5fa4dc

View File

@ -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 */