Module Name: src
Committed By: martin
Date: Sun Oct 13 10:05:58 UTC 2024
Modified Files:
src/sys/sys [netbsd-10]: rbtree.h
Log Message:
Additionaly pull up following revision(s) (requested by riastradh in ticket
#952):
sys/sys/rbtree.h: revision 1.10
sys/sys/rbtree.h: revision 1.11
sys/sys/rbtree.h: revision 1.9
This uses size_t, so it always needs <sys/types.h>, remove ifdefs.
Put back <stdbool.h> - but only when RBDEBUG is defined (the
similarly conditional rb_tree_check() prototype needs "bool").
Fix previous so <stdbool.h> isn't included with _KERNEL (etc).
Like it used to be.
To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.5.30.1 src/sys/sys/rbtree.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/rbtree.h
diff -u src/sys/sys/rbtree.h:1.5 src/sys/sys/rbtree.h:1.5.30.1
--- src/sys/sys/rbtree.h:1.5 Thu Mar 7 14:39:21 2019
+++ src/sys/sys/rbtree.h Sun Oct 13 10:05:58 2024
@@ -1,4 +1,4 @@
-/* $NetBSD: rbtree.h,v 1.5 2019/03/07 14:39:21 roy Exp $ */
+/* $NetBSD: rbtree.h,v 1.5.30.1 2024/10/13 10:05:58 martin Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -41,6 +41,10 @@
#include <sys/queue.h>
#include <sys/endian.h>
+#if !defined(_KERNEL) && !defined(_STANDALONE) && defined(RBDEBUG)
+#include <stdbool.h>
+#endif
+
__BEGIN_DECLS
typedef struct rb_node {