Skip to content

Commit

Permalink
V4L/DVB (4046): Trivial videodev2.h patch
Browse files Browse the repository at this point in the history
linux/videodev2.h uses types such as __u8 but it fails to include
<linux/types.h>.  Within the kernel, that's not a problem because
<linux/time.h> already includes <linux/types.h>.  However, there are
user apps that try to include videodev2.h (e.g., ekiga) and at least
on ia64, it causes compilation failures since <linux/types.h> doesn't
get included for any other reason, leaving __u8 etc. undefined.  The
attached patch fixes the problem for me.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
  • Loading branch information
David Mosberger-Tang authored and mchehab committed Jun 25, 2006
1 parent dea7486 commit c003d46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/videodev2.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include <linux/device.h>
#include <linux/mutex.h>
#endif
#include <linux/types.h>
#include <linux/compiler.h> /* need __user */


Expand Down

0 comments on commit c003d46

Please sign in to comment.