summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-06-17 07:57:03 -0300
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-06-17 07:57:03 -0300
commit01e2ad77614e339b1152ee338061c9330d2e5243 (patch)
tree961027ac80ed7fccec3dffef21c1e545e70982fb
parent3ca0bf3bc155f5b99b87fb7ca3524a984d2cb4e4 (diff)
downloadmediapointer-dvb-s2-01e2ad77614e339b1152ee338061c9330d2e5243.tar.gz
mediapointer-dvb-s2-01e2ad77614e339b1152ee338061c9330d2e5243.tar.bz2
Fixes some userspace dependencies at V4L2 public api header
From: Mauro Carvalho Chehab <mchehab@infradead.org> Make life easier for distro guys, by removing the need of including #define __user at the userspace header. Also, linux/compiler.h is not needed at userspace. Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--linux/include/linux/videodev2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/linux/include/linux/videodev2.h b/linux/include/linux/videodev2.h
index 630ebfaca..26dc9c62d 100644
--- a/linux/include/linux/videodev2.h
+++ b/linux/include/linux/videodev2.h
@@ -15,10 +15,12 @@
#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