Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

V4L/DVB (7198): 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

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

authored by

Jiri Slaby and committed by
Mauro Carvalho Chehab
83db33a3 7c018804

+2
+1
include/linux/videodev.h
··· 12 12 #ifndef __LINUX_VIDEODEV_H 13 13 #define __LINUX_VIDEODEV_H 14 14 15 + #include <linux/ioctl.h> 15 16 #include <linux/videodev2.h> 16 17 17 18 #if defined(CONFIG_VIDEO_V4L1_COMPAT) || !defined (__KERNEL__)
+1
include/linux/videodev2.h
··· 62 62 #define __user 63 63 #include <sys/time.h> 64 64 #endif 65 + #include <linux/ioctl.h> 65 66 #include <linux/types.h> 66 67 67 68 /*