mirror of
https://github.com/Motion-Project/motion.git
synced 2026-06-12 07:44:34 -04:00
check for V4L2 header in sys/videoio.h as well as linux/videodev.h
This commit is contained in:
@@ -915,7 +915,7 @@ fi
|
||||
|
||||
#Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS(stdio.h unistd.h stdint.h fcntl.h time.h signal.h sys/ioctl.h sys/mman.h linux/videodev.h linux/videodev2.h sys/param.h sys/types.h)
|
||||
AC_CHECK_HEADERS(stdio.h unistd.h stdint.h fcntl.h time.h signal.h sys/ioctl.h sys/mman.h linux/videodev.h linux/videodev2.h sys/param.h sys/types.h sys/videoio.h)
|
||||
|
||||
AC_CHECK_FUNCS(get_current_dir_name)
|
||||
|
||||
@@ -931,8 +931,11 @@ else
|
||||
[SUPPORTED_V4L2=true],
|
||||
[SUPPORTED_V4L2=false],
|
||||
[#include <sys/time.h>
|
||||
#include <linux/videodev.h>])
|
||||
|
||||
#ifdef HAVE_LINUX_VIDEODEV_H
|
||||
#include <linux/videodev.h>
|
||||
#elif HAVE_SYS_VIDEOIO_H
|
||||
#include <sys/videoio.h>
|
||||
#endif])
|
||||
AC_MSG_CHECKING(for V42L support)
|
||||
if test x$SUPPORTED_V4L2 = xtrue; then
|
||||
AC_MSG_RESULT(yes)
|
||||
|
||||
2
track.c
2
track.c
@@ -9,7 +9,7 @@
|
||||
#include <math.h>
|
||||
#include "motion.h"
|
||||
|
||||
#if defined(HAVE_LINUX_VIDEODEV_H) && (!defined(WITHOUT_V4L))
|
||||
#if (defined(HAVE_LINUX_VIDEODEV_H) || defined(HAVE_SYS_VIDEOIO_H)) && (!defined(WITHOUT_V4L))
|
||||
#include "pwc-ioctl.h"
|
||||
#endif
|
||||
|
||||
|
||||
6
video.h
6
video.h
@@ -14,8 +14,12 @@
|
||||
#include <sys/mman.h>
|
||||
|
||||
|
||||
#if defined(HAVE_LINUX_VIDEODEV_H) && (!defined(WITHOUT_V4L))
|
||||
#if !defined(WITHOUT_V4L)
|
||||
#if defined(HAVE_LINUX_VIDEODEV_H)
|
||||
#include <linux/videodev.h>
|
||||
#elif defined(HAVE_SYS_VIDEOIO_H)
|
||||
#include <sys/videoio.h>
|
||||
#endif
|
||||
#include "vloopback_motion.h"
|
||||
#include "pwc-ioctl.h"
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user