Fix "videodev.h" incorrect detection as header for V4L2.

This header is valid for V4L1.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 5 years ago
parent 73148be818
commit 7b8a190b62
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -88,17 +88,6 @@ case "$target" in
[have_v4l2=false],
[#include <sys/time.h>
#include <linux/videodev2.h>])
if test x$have_v4l2 = xfalse; then
unset ac_cv_type_struct_v4l2_buffer
AC_CHECK_TYPE([struct v4l2_buffer],
[have_v4l2=true],
[have_v4l2=false],
[#include <sys/time.h>
#include <linux/videodev.h>])
if test x$have_v4l2 = xtrue; then
AC_DEFINE(HAVE_LINUX_ALTERNATE_VIDEODEV_H, 1, [Define to 1 if you have the <linux/videodev.h> header file.])
fi
fi
if test x$have_v4l2 = xfalse; then
KERNEL_VERSION=`uname -r`
AC_CHECK_FILE(/lib/modules/$KERNEL_VERSION/build/include/linux/videodev2.h,

@ -24,11 +24,7 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_LINUX_ALTERNATE_VIDEODEV_H
#include "videodev.h"
#else
#include "videodev2.h"
#endif
#include "../eventloop.h"
class V4L1_Base

@ -23,11 +23,7 @@
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_LINUX_ALTERNATE_VIDEODEV_H
#include "videodev.h"
#else
#include "videodev2.h"
#endif
#include "v4l1_base.h"
class V4L1_PWC : public V4L1_Base

Loading…
Cancel
Save