The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH 1/1] V4L, include ioctl.h in videodev headers
@ 2008-02-13 14:47 Jiri Slaby
  0 siblings, 0 replies; only message in thread
From: Jiri Slaby @ 2008-02-13 14:47 UTC (permalink / raw)
  To: mchehab; +Cc: linux-kernel, v4l-dvb-maintainer, video4linux-list, Jiri Slaby

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>
---
 include/linux/videodev.h  |    1 +
 include/linux/videodev2.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/linux/videodev.h b/include/linux/videodev.h
index 52e3d5f..9385a56 100644
--- a/include/linux/videodev.h
+++ b/include/linux/videodev.h
@@ -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__)
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h
index 439474f..17a8017 100644
--- a/include/linux/videodev2.h
+++ b/include/linux/videodev2.h
@@ -62,6 +62,7 @@
 #define __user
 #include <sys/time.h>
 #endif
+#include <linux/ioctl.h>
 #include <linux/types.h>
 
 /*
-- 
1.5.3.8


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-13 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-13 14:47 [PATCH 1/1] V4L, include ioctl.h in videodev headers Jiri Slaby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox