V4L/DVB (4108): Fixes some userspace dependencies at V4L2 public api header
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sat, 17 Jun 2006 10:57:03 +0000 (07:57 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 25 Jun 2006 05:05:09 +0000 (02:05 -0300)
Make life easier for distro guys, by removing the need of including
at the userspace header.
Also, linux/compiler.h is not needed at userspace.

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

index bc957d83a127b111b21e261b732b5a7b8f44be5a..9a70c5654ceb94f568a65a903ae002c894cd4d61 100644 (file)
 #ifndef __LINUX_VIDEODEV2_H
 #define __LINUX_VIDEODEV2_H
 #ifdef __KERNEL__
-#include <linux/time.h> /* need struct timeval */
+#include <linux/time.h>     /* need struct timeval */
+#include <linux/compiler.h> /* need __user */
+#else
+#define __user
 #endif
 #include <linux/types.h>
-#include <linux/compiler.h> /* need __user */
 
 #define HAVE_V4L2 1