summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/stdbool.h2
-rw-r--r--sys/sys/param.h2
-rw-r--r--sys/sys/types.h10
3 files changed, 13 insertions, 1 deletions
diff --git a/include/stdbool.h b/include/stdbool.h
index c0d6459..099549c 100644
--- a/include/stdbool.h
+++ b/include/stdbool.h
@@ -29,6 +29,7 @@
#ifndef _STDBOOL_H_
#define _STDBOOL_H_
+#ifndef __bool_true_false_are_defined
#define __bool_true_false_are_defined 1
#ifndef __cplusplus
@@ -42,5 +43,6 @@ typedef int _Bool;
#endif
#endif /* !__cplusplus */
+#endif /* __bool_true_false_are_defined */
#endif /* !_STDBOOL_H_ */
diff --git a/sys/sys/param.h b/sys/sys/param.h
index 87eba11..1ce8e35 100644
--- a/sys/sys/param.h
+++ b/sys/sys/param.h
@@ -58,7 +58,7 @@
* in the range 5 to 9.
*/
#undef __FreeBSD_version
-#define __FreeBSD_version 1000001 /* Master, propagated to newvers */
+#define __FreeBSD_version 1000002 /* Master, propagated to newvers */
/*
* __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD,
diff --git a/sys/sys/types.h b/sys/sys/types.h
index 1b994d3..43c29d6 100644
--- a/sys/sys/types.h
+++ b/sys/sys/types.h
@@ -261,6 +261,16 @@ typedef __uint64_t uoff_t;
typedef char vm_memattr_t; /* memory attribute codes */
typedef struct vm_page *vm_page_t;
+#if !defined(__bool_true_false_are_defined) && !defined(__cplusplus)
+#define __bool_true_false_are_defined 1
+#define false 0
+#define true 1
+#if __STDC_VERSION__ < 199901L && __GNUC__ < 3 && !defined(__INTEL_COMPILER)
+typedef int _Bool;
+#endif
+typedef _Bool bool;
+#endif /* !__bool_true_false_are_defined && !__cplusplus */
+
#define offsetof(type, field) __offsetof(type, field)
#endif /* !_KERNEL */
OpenPOWER on IntegriCloud