File: spinlock.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 (23 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- include/linux/spinlock.h	2004-01-03 13:08:15.000000000 -0500
+++ include/linux/spinlock.h	2004-01-03 13:09:05.000000000 -0500
@@ -1,6 +1,13 @@
 #ifndef __LINUX_SPINLOCK_H
 #define __LINUX_SPINLOCK_H
 
+#ifndef __KERNEL__
+
+typedef struct { int empty; } spinlock_t;
+typedef struct { int empty; } rwlock_t;
+
+#else
+
 /*
  * include/linux/spinlock.h - generic locking declarations
  */
@@ -465,4 +472,6 @@
 #endif
 }
 
+#endif /* __KERNEL__ */
+
 #endif /* __LINUX_SPINLOCK_H */