]> err.no Git - linux-2.6/commitdiff
V4L/DVB (5867): videodev2.h: add missing <sys/time.h> for userspace
authorHans Verkuil <hverkuil@xs4all.nl>
Wed, 18 Jul 2007 21:41:08 +0000 (18:41 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 20 Jul 2007 20:35:52 +0000 (17:35 -0300)
When videodev2.h is included by an application, it needs to include
<sys/time.h> for the timeval struct.

Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
include/linux/videodev2.h

index d16a2b57dc8105806a07afa5e97e843cd0844274..c66c8a3410b926d10b0c2ac55e45d09277af96be 100644 (file)
@@ -60,6 +60,7 @@
 #include <linux/compiler.h> /* need __user */
 #else
 #define __user
+#include <sys/time.h>
 #endif
 #include <linux/types.h>