V4L/DVB (7198): V4L, include ioctl.h in videodev headers
authorJiri Slaby <jirislaby@gmail.com>
Wed, 13 Feb 2008 23:04:49 +0000 (20:04 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 18 Feb 2008 15:18:05 +0000 (12:18 -0300)
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>
include/linux/videodev.h
include/linux/videodev2.h

index 52e3d5fd5be45438193873ff938c5871b1890f39..9385a566aed8dd5136c0be1f2fc01981d1a849be 100644 (file)
@@ -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__)
index 439474f24e34b63f568828ea76ed5614b34afd9b..17a80177a674194460f389a331f2fead05a80818 100644 (file)
@@ -62,6 +62,7 @@
 #define __user
 #include <sys/time.h>
 #endif
+#include <linux/ioctl.h>
 #include <linux/types.h>
 
 /*