[rtems commit] Include <stdbool.h> in <machine/_kernel_types.h>
Sebastian Huber
sebh at rtems.org
Mon Aug 27 05:41:59 UTC 2018
Module: rtems
Branch: master
Commit: 6d70a1190539ade3f6ec67358461292908473066
Changeset: http://git.rtems.org/rtems/commit/?id=6d70a1190539ade3f6ec67358461292908473066
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Aug 27 07:33:29 2018 +0200
Include <stdbool.h> in <machine/_kernel_types.h>
The FreeBSD kernel started to use the bool type.
Update #3472.
---
cpukit/include/machine/_kernel_types.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/cpukit/include/machine/_kernel_types.h b/cpukit/include/machine/_kernel_types.h
index 892ec41..a02f328 100644
--- a/cpukit/include/machine/_kernel_types.h
+++ b/cpukit/include/machine/_kernel_types.h
@@ -28,6 +28,8 @@
#error "must be included via <sys/types.h> in kernel space"
#endif
+#include <stdbool.h>
+
typedef int boolean_t;
typedef struct device *device_t;
typedef char vm_memattr_t; /* memory attribute codes */
More information about the vc
mailing list