summaryrefslogtreecommitdiffstats
path: root/sys/compat
diff options
context:
space:
mode:
authornetchild <netchild@FreeBSD.org>2011-05-04 08:41:55 +0000
committernetchild <netchild@FreeBSD.org>2011-05-04 08:41:55 +0000
commit991566d22bb2c54974a30f22904a91bad439f34f (patch)
tree43d2d525148841529120b1b11b9577d6013733d4 /sys/compat
parent443cec25961527ac2dcbdb1abdb350e73d4beb48 (diff)
downloadFreeBSD-src-991566d22bb2c54974a30f22904a91bad439f34f.zip
FreeBSD-src-991566d22bb2c54974a30f22904a91bad439f34f.tar.gz
Add explanation about the use-permission and FreeBSDify it.
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/linux/linux_videodev2.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/compat/linux/linux_videodev2.h b/sys/compat/linux/linux_videodev2.h
index ad7fa9c..b10ba80 100644
--- a/sys/compat/linux/linux_videodev2.h
+++ b/sys/compat/linux/linux_videodev2.h
@@ -1,3 +1,12 @@
+/*
+ * This header comes from linux, but it has no license. The author
+ * (Bill Dirks) gave explicit permissions to use it in FreeBSD.
+ * The FreeBSD vendor branch for v4l gives a more detailed description
+ * about this in the README.
+ *
+ * $FreeBSD$
+ */
+
#ifndef __LINUX_VIDEODEV2_H
#define __LINUX_VIDEODEV2_H
/*
@@ -13,6 +22,11 @@
* Justin Schoeman
* et al.
*/
+#ifdef __FreeBSD__
+#define __user
+typedef uint64_t __u64;
+typedef int64_t __s64;
+#else
#ifdef __KERNEL__
#include <linux/time.h> /* need struct timeval */
#include <linux/poll.h>
@@ -20,6 +34,7 @@
#include <linux/mutex.h>
#endif
#include <linux/compiler.h> /* need __user */
+#endif
#define OBSOLETE_OWNER 1 /* It will be removed for 2.6.17 */
OpenPOWER on IntegriCloud