2008-05-30 20:19:24 +03:00
|
|
|
--- a/include/linux/time.h
|
|
|
|
+++ b/include/linux/time.h
|
2008-01-28 15:36:09 +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__
|
2009-02-08 21:16:45 +02:00
|
|
|
@@ -231,4 +235,6 @@ struct itimerval {
|
2008-01-28 15:36:09 +02:00
|
|
|
*/
|
|
|
|
#define TIMER_ABSTIME 0x01
|
|
|
|
|
|
|
|
+#endif /* __KERNEL__ DEBIAN */
|
|
|
|
+
|
|
|
|
#endif
|
2008-05-30 20:19:24 +03:00
|
|
|
--- a/include/linux/types.h
|
|
|
|
+++ b/include/linux/types.h
|
2008-01-28 15:36:09 +02:00
|
|
|
@@ -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__
|
|
|
|
|
2008-05-18 23:25:45 +03:00
|
|
|
#define DECLARE_BITMAP(name,bits) \
|
2009-02-08 21:16:45 +02:00
|
|
|
@@ -161,6 +169,8 @@ typedef unsigned long blkcnt_t;
|
2008-01-28 15:36:09 +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.
|