Make minimum amoutn of changes in order to make it compile without the
kernel.
Signed-off-by: Timo Kokkonen <kaapeli@itanic.dy.fi>
linux/lib/rbtree.c
*/
-#include <linux/rbtree.h>
-#include <linux/module.h>
+#include <stdlib.h>
+
+#include "rbtree.h"
+
+#define EXPORT_SYMBOL(foo)
static void __rb_rotate_left(struct rb_node *node, struct rb_root *root)
{
#ifndef _LINUX_RBTREE_H
#define _LINUX_RBTREE_H
-#include <linux/kernel.h>
-#include <linux/stddef.h>
-
struct rb_node
{
unsigned long rb_parent_color;