| 1 |
--- freebsd/include/linux/input.h.orig 2012-12-05 10:18:56.000000000 +0100 |
| 2 |
+++ freebsd/include/linux/input.h 2012-12-05 10:22:11.228350200 +0100 |
| 3 |
@@ -8,11 +8,47 @@ |
| 4 |
#ifndef _INPUT_H |
| 5 |
#define _INPUT_H |
| 6 |
|
| 7 |
- |
| 8 |
+#include <stdint.h> |
| 9 |
#include <sys/time.h> |
| 10 |
#include <sys/ioctl.h> |
| 11 |
#include <sys/types.h> |
| 12 |
+ |
| 13 |
+#ifndef HAVE_LINUX_INTEGER_TYPES |
| 14 |
+/* XXX remove when depending software has been updated */ |
| 15 |
+#ifndef __u64 |
| 16 |
+typedef uint64_t __u64; |
| 17 |
+#endif |
| 18 |
+#ifndef __u32 |
| 19 |
+typedef uint32_t __u32; |
| 20 |
+#endif |
| 21 |
+#ifndef __u16 |
| 22 |
+typedef uint16_t __u16; |
| 23 |
+#endif |
| 24 |
+#ifndef __u8 |
| 25 |
+typedef uint8_t __u8; |
| 26 |
+#endif |
| 27 |
+ |
| 28 |
+#ifndef __s64 |
| 29 |
+typedef int64_t __s64; |
| 30 |
+#endif |
| 31 |
+#ifndef __s32 |
| 32 |
+typedef int32_t __s32; |
| 33 |
+#endif |
| 34 |
+#ifndef __s16 |
| 35 |
+typedef int16_t __s16; |
| 36 |
+#endif |
| 37 |
+#ifndef __s8 |
| 38 |
+typedef int8_t __s8; |
| 39 |
+#endif |
| 40 |
+#endif |
| 41 |
+ |
| 42 |
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) |
| 43 |
+#define __user |
| 44 |
+#define _IOC_READ IOC_OUT |
| 45 |
+#define _IOC_WRITE IOC_IN |
| 46 |
+#else |
| 47 |
#include <linux/types.h> |
| 48 |
+#endif |
| 49 |
|
| 50 |
|
| 51 |
/* |