summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/videodev2.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index bc957d83a127..9a70c5654ceb 100644
--- a/include/linux/videodev2.h
+++ b/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
OpenPOWER on IntegriCloud