Skip to contentSkip to conversation

V4L, include ioctl.h in videodev headers

PATCH New Jiri Slaby 1 participant 1 message Feb 13, 2008

lore
Share & tools
lore

Jiri Slaby

author
#0 lore raw

PATCH 1/1 V4L, include ioctl.h in videodev headers

Fix compilation of user processes which includes videodev*.h but not includes linux/ioctl.h:

v4l2ext_helper.c: In function ‘process_ioctl’:
v4l2ext_helper.c:183: warning: implicit declaration of function ‘_IOWR’ v4l2ext_helper.c:183: error: expected expression before ‘struct’ v4l2ext_helper.c:183: error: case label does not reduce to an integer constant

---
 include/linux/videodev.h  |    1 +
 include/linux/videodev2.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
include/linux/videodev.h +1 -0
index 52e3d5f..9385a56 100644
@@ -12,6 +12,7 @@
 #ifndef __LINUX_VIDEODEV_H
 #define __LINUX_VIDEODEV_H
 
+#include <linux/ioctl.h>
 #include <linux/videodev2.h>
 
 #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__)
include/linux/videodev2.h +1 -0
index 439474f..17a8017 100644
@@ -62,6 +62,7 @@
 #define __user
 #include <sys/time.h>
 #endif
+#include <linux/ioctl.h>
 #include <linux/types.h>
 
 /*
Signature · 1 line
1.5.3.8