Skip to content

Commit

Permalink
V4L/DVB (7198): V4L, include ioctl.h in videodev headers
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Mauro Carvalho Chehab committed Feb 18, 2008
1 parent 7c01880 commit 83db33a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/videodev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down
1 change: 1 addition & 0 deletions include/linux/videodev2.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
#define __user
#include <sys/time.h>
#endif
#include <linux/ioctl.h>
#include <linux/types.h>

/*
Expand Down

0 comments on commit 83db33a

Please sign in to comment.