svn commit: r368415 - head/stand/kshim

Hans Petter Selasky hselasky at FreeBSD.org
Mon Dec 7 16:08:32 UTC 2020


Author: hselasky
Date: Mon Dec  7 16:08:31 2020
New Revision: 368415
URL: https://svnweb.freebsd.org/changeset/base/368415

Log:
  Properly define the bool type in the BSD kernel shim.
  
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies // NVIDIA Networking

Modified:
  head/stand/kshim/bsd_kernel.h

Modified: head/stand/kshim/bsd_kernel.h
==============================================================================
--- head/stand/kshim/bsd_kernel.h	Mon Dec  7 15:09:28 2020	(r368414)
+++ head/stand/kshim/bsd_kernel.h	Mon Dec  7 16:08:31 2020	(r368415)
@@ -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 */
 


More information about the svn-src-head mailing list