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/50fe4ce7fa65
branches:  trunk
changeset: 1020543:50fe4ce7fa65
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 e2fe1771e113 -r 50fe4ce7fa65 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