aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice
diff options
context:
space:
mode:
authorBrad <brad@comstyle.com>2008-09-21 22:47:52 +0000
committerDiego Biurrun <diego@biurrun.de>2008-09-21 22:47:52 +0000
commit1b6e8b734c61260c5202affafae4781627ad136f (patch)
tree2ac8cf95853d956dfb59b7d4249a93567c7c12a8 /libavdevice
parent8b1fd554e1c202d96094f9028d7a3a099a063afa (diff)
downloadffmpeg-1b6e8b734c61260c5202affafae4781627ad136f.tar.gz
V4L2 support for OpenBSD, patch by Brad, brad comstyle com
Originally committed as revision 15376 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavdevice')
-rw-r--r--libavdevice/v4l2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 0150c804d4..699a982ac2 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -35,8 +35,12 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/time.h>
+#ifdef HAVE_SYS_VIDEOIO_H
+#include <sys/videoio.h>
+#else
#include <asm/types.h>
#include <linux/videodev2.h>
+#endif
#include <time.h>
#include <strings.h>