]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
rbtree: reduce more with upstream
authorRoy Marples <roy@marples.name>
Thu, 7 Mar 2019 12:21:20 +0000 (12:21 +0000)
committerRoy Marples <roy@marples.name>
Thu, 7 Mar 2019 12:21:20 +0000 (12:21 +0000)
compat/rb.c
src/common.h

index 3b1c3e5fd10ab5863572db631577385983634402..0e0a2cf52c0f1cb79d03bf76ada44e19daa74eb5 100644 (file)
@@ -29,6 +29,8 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
+#include "common.h"
+
 #if !defined(_KERNEL) && !defined(_STANDALONE)
 #include <sys/types.h>
 #include <stddef.h>
@@ -39,7 +41,7 @@
 #else
 #define KASSERT(s)     do { } while (/*CONSTCOND*/ 0)
 #endif
-//__RCSID("$NetBSD: rb.c,v 1.13 2014/08/22 17:19:48 matt Exp $");
+__RCSID("$NetBSD: rb.c,v 1.13 2014/08/22 17:19:48 matt Exp $");
 #else
 #include <lib/libkern/libkern.h>
 __KERNEL_RCSID(0, "$NetBSD: rb.c,v 1.13 2014/08/22 17:19:48 matt Exp $");
@@ -67,8 +69,6 @@ __weak_alias(rb_tree_depths, _rb_tree_depths)
 #include <sys/rbtree.h>
 #endif
 
-#include "common.h"
-
 static void rb_tree_insert_rebalance(struct rb_tree *, struct rb_node *);
 static void rb_tree_removal_rebalance(struct rb_tree *, struct rb_node *,
        unsigned int);
index e70b8b9efa880b4909ef82141a50030bae4ca138..a1dc5217bf6ea02a54e01b7906377693f16ce7bd 100644 (file)
 # endif
 #endif
 
+/* Needed for rbtree(3) compat */
+#define __RCSID(a)
 #ifndef __predict_false
 # if __GNUC__ > 2
 #  define      __predict_true(exp)     __builtin_expect((exp) != 0, 1)