summaryrefslogtreecommitdiffstats
path: root/target/linux/generic-2.6/patches/900-headers_type_and_time.patch
blob: 56a5ef32306a7a19b6118b08520da23517f8c16d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Taken from Debian linux-kernel-headers package
Update 2005-05-05 gotom, add __extension__ for linux/types.h.

--- linux.old/include/linux/time.h	2006-06-05 13:18:23.000000000 -0400
+++ linux.dev/include/linux/time.h	2006-06-10 00:16:51.962628154 -0400
@@ -1,6 +1,10 @@
 #ifndef _LINUX_TIME_H
 #define _LINUX_TIME_H
 
+#ifndef __KERNEL__
+#include <time.h>
+#else
+
 #include <linux/types.h>
 
 #ifdef __KERNEL__
@@ -196,4 +200,6 @@
  */
 #define TIMER_ABSTIME			0x01
 
+#endif /* __KERNEL__ DEBIAN */
+
 #endif
--- linux.old/include/linux/types.h	2006-06-05 13:18:23.000000000 -0400
+++ linux.dev/include/linux/types.h	2006-06-10 00:16:51.962628154 -0400
@@ -1,6 +1,14 @@
 #ifndef _LINUX_TYPES_H
 #define _LINUX_TYPES_H
 
+/* Debian: Use userland types instead.  */
+#ifndef __KERNEL__
+# include <sys/types.h>
+/* For other kernel headers.  */
+# include <linux/posix_types.h>
+# include <asm/types.h>
+#else
+
 #ifdef	__KERNEL__
 #include <linux/config.h>
 
@@ -147,6 +157,8 @@
 
 #endif /* __KERNEL_STRICT_NAMES */
 
+#endif /* __KERNEL__ DEBIAN */
+
 /*
  * Below are truly Linux-specific types that should never collide with
  * any application/library that wants linux/types.h.