Date: Wed, 4 May 2011 08:41:55 +0000 (UTC) From: Alexander Leidinger <netchild@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r221424 - head/sys/compat/linux Message-ID: <201105040841.p448ftQP038188@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: netchild Date: Wed May 4 08:41:55 2011 New Revision: 221424 URL: http://svn.freebsd.org/changeset/base/221424 Log: Add explanation about the use-permission and FreeBSDify it. Modified: head/sys/compat/linux/linux_videodev2.h Modified: head/sys/compat/linux/linux_videodev2.h ============================================================================== --- head/sys/compat/linux/linux_videodev2.h Wed May 4 08:31:58 2011 (r221423) +++ head/sys/compat/linux/linux_videodev2.h Wed May 4 08:41:55 2011 (r221424) @@ -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 */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105040841.p448ftQP038188>