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/cc4cb5f437ee
branches:  trunk
changeset: 378512:cc4cb5f437ee
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 872b6e0a1c08 -r cc4cb5f437ee 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 @@ typedef id_t          ctid_t;
 
 #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