2009-02-08 21:33:57 +02:00
|
|
|
--- a/include/linux/time.h
|
|
|
|
+++ b/include/linux/time.h
|
2006-12-08 17:58:15 +02:00
|
|
|
@@ -1,6 +1,10 @@
|
|
|
|
#ifndef _LINUX_TIME_H
|
|
|
|
#define _LINUX_TIME_H
|
|
|
|
|
|
|
|
+#ifndef __KERNEL__
|
|
|
|
+#include <time.h>
|
|
|
|
+#else
|
|
|
|
+
|
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
#ifdef __KERNEL__
|
2008-05-18 23:23:20 +03:00
|
|
|
@@ -224,4 +228,6 @@ struct itimerval {
|
2006-12-08 17:58:15 +02:00
|
|
|
*/
|
|
|
|
#define TIMER_ABSTIME 0x01
|
|
|
|
|
|
|
|
+#endif /* __KERNEL__ DEBIAN */
|
|
|
|
+
|
|
|
|
#endif
|
2009-02-08 21:33:57 +02:00
|
|
|
--- a/include/linux/types.h
|
|
|
|
+++ b/include/linux/types.h
|
2006-12-09 12:38:11 +02:00
|
|
|
@@ -1,6 +1,14 @@
|
2006-12-08 17:58:15 +02:00
|
|
|
#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__
|
|
|
|
|
2006-12-14 18:41:33 +02:00
|
|
|
#define BITS_TO_LONGS(bits) \
|
2008-05-18 23:23:20 +03:00
|
|
|
@@ -162,6 +170,8 @@ typedef unsigned long blkcnt_t;
|
2006-12-08 17:58:15 +02:00
|
|
|
|
|
|
|
#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.
|