File: linux-types-and-time.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 (46 lines) | stat: -rw-r--r-- 1,009 bytes parent folder | download
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
--- include/linux/time.h.orig	2003-11-21 19:04:28.000000000 -0500
+++ include/linux/time.h	2003-11-21 19:04:59.000000000 -0500
@@ -1,6 +1,10 @@
 #ifndef _LINUX_TIME_H
 #define _LINUX_TIME_H
 
+#ifndef __KERNEL__
+#include <time.h>
+#else
+
 #include <asm/param.h>
 #include <linux/types.h>
 
@@ -383,5 +387,6 @@
 
 #define TIMER_ABSTIME 0x01
 
+#endif /* __KERNEL__ DEBIAN */
 
 #endif
--- include/linux/types.h.orig	2003-11-21 19:10:58.000000000 -0500
+++ include/linux/types.h	2003-11-21 19:07:47.000000000 -0500
@@ -1,6 +1,16 @@
 #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>
+/* For util-linux / cryptoloop.  How lame.  */
+typedef __u32 __kernel_dev_t;
+#else
+
 #ifdef	__KERNEL__
 #include <linux/config.h>
 
@@ -155,4 +165,6 @@
 	char			f_fpack[6];
 };
 
+#endif /* __KERNEL__ DEBIAN */
+
 #endif /* _LINUX_TYPES_H */