File: linux-radix-tree.patch

package info (click to toggle)
linux-kernel-headers 2.5.999-test7-bk-17
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 28,268 kB
  • ctags: 214,024
  • sloc: ansic: 324,929; cpp: 783; makefile: 79; asm: 61; sh: 61
file content (20 lines) | stat: -rw-r--r-- 485 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Included by a lot of other <linux/> headers.  Shouldn't be needed outside of
__KERNEL__.

--- include/linux/radix-tree.h.orig	2003-10-15 11:11:21.000000000 -0400
+++ include/linux/radix-tree.h	2003-11-05 09:30:42.000000000 -0500
@@ -19,6 +19,8 @@
 #ifndef _LINUX_RADIX_TREE_H
 #define _LINUX_RADIX_TREE_H
 
+#ifdef __KERNEL__
+
 #include <linux/preempt.h>
 
 struct radix_tree_node;
@@ -54,4 +56,5 @@
 	preempt_enable();
 }
 
+#endif /* __KERNEL__ */
 #endif /* _LINUX_RADIX_TREE_H */