Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys/sys avoid second typedef for boolean...
details: https://anonhg.NetBSD.org/src/rev/7a9c6bcb1a19
branches: trunk
changeset: 961684:7a9c6bcb1a19
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 15 07:00:50 2021 +0000
description:
avoid second typedef for boolean_t in kernel code originally defined in
<sys/types.h>
diffstat:
external/cddl/osnet/sys/sys/opentypes.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 333ee4b81808 -r 7a9c6bcb1a19 external/cddl/osnet/sys/sys/opentypes.h
--- a/external/cddl/osnet/sys/sys/opentypes.h Thu Apr 15 06:59:57 2021 +0000
+++ b/external/cddl/osnet/sys/sys/opentypes.h Thu Apr 15 07:00:50 2021 +0000
@@ -36,7 +36,9 @@
#define B_FALSE 0
#define B_TRUE 1
+#ifndef _KERNEL
typedef int boolean_t;
+#endif
#ifndef __defined_hr_t
#define __defined_hr_t
Home |
Main Index |
Thread Index |
Old Index