| 1 |
--- freebsd/include/linux/videodev2.h.orig 2012-12-05 10:23:08.000000000 +0100 |
| 2 |
+++ freebsd/include/linux/videodev2.h 2012-12-05 10:25:46.864570965 +0100 |
| 3 |
@@ -56,10 +56,44 @@ |
| 4 |
#ifndef __LINUX_VIDEODEV2_H |
| 5 |
#define __LINUX_VIDEODEV2_H |
| 6 |
|
| 7 |
+#include <stdint.h> |
| 8 |
#include <sys/time.h> |
| 9 |
+#include <sys/types.h> |
| 10 |
+#include <sys/ioctl.h> |
| 11 |
|
| 12 |
+#ifndef HAVE_LINUX_INTEGER_TYPES |
| 13 |
+/* XXX remove when depending software has been updated */ |
| 14 |
+#ifndef __u64 |
| 15 |
+typedef uint64_t __u64; |
| 16 |
+#endif |
| 17 |
+#ifndef __u32 |
| 18 |
+typedef uint32_t __u32; |
| 19 |
+#endif |
| 20 |
+#ifndef __u16 |
| 21 |
+typedef uint16_t __u16; |
| 22 |
+#endif |
| 23 |
+#ifndef __u8 |
| 24 |
+typedef uint8_t __u8; |
| 25 |
+#endif |
| 26 |
+ |
| 27 |
+#ifndef __s64 |
| 28 |
+typedef int64_t __s64; |
| 29 |
+#endif |
| 30 |
+#ifndef __s32 |
| 31 |
+typedef int32_t __s32; |
| 32 |
+#endif |
| 33 |
+#ifndef __s16 |
| 34 |
+typedef int16_t __s16; |
| 35 |
+#endif |
| 36 |
+#ifndef __s8 |
| 37 |
+typedef int8_t __s8; |
| 38 |
+#endif |
| 39 |
+#endif |
| 40 |
+ |
| 41 |
+#ifdef __KERNEL__ |
| 42 |
#include <linux/ioctl.h> |
| 43 |
#include <linux/types.h> |
| 44 |
+#endif |
| 45 |
#include <linux/v4l2-common.h> |
| 46 |
#include <linux/v4l2-controls.h> |
| 47 |
|