]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
V4L/DVB (4046): Trivial videodev2.h patch
authorDavid Mosberger-Tang <David.Mosberger@acm.org>
Fri, 26 May 2006 13:28:13 +0000 (10:28 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 05:05:00 +0000 (02:05 -0300)
linux/videodev2.h uses types such as __u8 but it fails to include
<linux/types.h>.  Within the kernel, that's not a problem because
<linux/time.h> already includes <linux/types.h>.  However, there are
user apps that try to include videodev2.h (e.g., ekiga) and at least
on ia64, it causes compilation failures since <linux/types.h> doesn't
get included for any other reason, leaving __u8 etc. undefined.  The
attached patch fixes the problem for me.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
include/linux/videodev2.h

index ad7fa9c86c1008157211021ce5f23829368d6ff0..b3a848b6fb1c19aadb913bf1a1ef4eda461363ed 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/device.h>
 #include <linux/mutex.h>
 #endif
+#include <linux/types.h>
 #include <linux/compiler.h> /* need __user */