mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-05 20:42:10 -05:00
Remove unneeded MOTION_V4L2_OLD define
V4L2 is defined in <linux/videodev2.h> in current kernels
This commit is contained in:
@@ -40,7 +40,6 @@ else(${WITH_V4L})
|
||||
set(WITHOUT_V4L ON)
|
||||
endif(${WITH_V4L})
|
||||
set(MOTION_V4L2 ${HAVE_LINUX_VIDEODEV2_H})
|
||||
set(MOTION_V4L2_OLD ${HAVE_LINUX_VIDEODEV2_H})
|
||||
|
||||
configure_file(config.h.in "${CMAKE_CURRENT_SOURCE_DIR}/config.h")
|
||||
configure_file(motion-dist.conf.in motion-dist.conf)
|
||||
|
||||
@@ -18,5 +18,4 @@
|
||||
#undef PWCBSD
|
||||
#undef OLD_BKTR
|
||||
#cmakedefine MOTION_V4L2
|
||||
#cmakedefine MOTION_V4L2_OLD
|
||||
#cmakedefine WITHOUT_V4L
|
||||
|
||||
19
configure.ac
19
configure.ac
@@ -745,7 +745,6 @@ AC_CHECK_HEADERS(stdio.h unistd.h stdint.h fcntl.h time.h signal.h sys/ioctl.h s
|
||||
|
||||
# Check if v4l2 is available
|
||||
SUPPORTED_V4L2=false
|
||||
SUPPORTED_V4L2_old=false
|
||||
|
||||
if test "${V4L}" = "no"; then
|
||||
AC_MSG_CHECKING(for V42L support)
|
||||
@@ -755,7 +754,9 @@ else
|
||||
[SUPPORTED_V4L2=true],
|
||||
[SUPPORTED_V4L2=false],
|
||||
[#include <sys/time.h>
|
||||
#ifdef HAVE_LINUX_VIDEODEV_H
|
||||
#ifdef HAVE_LINUX_VIDEODEV2_H
|
||||
#include <linux/videodev2.h>
|
||||
#elif HAVE_LINUX_VIDEODEV_H
|
||||
#include <linux/videodev.h>
|
||||
#elif HAVE_SYS_VIDEOIO_H
|
||||
#include <sys/videoio.h>
|
||||
@@ -767,20 +768,6 @@ else
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
fi
|
||||
|
||||
# linux/videodev.h doesn't include videodev2.h
|
||||
if test x$SUPPORTED_V4L2 = xfalse; then
|
||||
AC_MSG_CHECKING(for V42L *old* support)
|
||||
AC_MSG_RESULT(testing)
|
||||
AC_CHECK_HEADERS(linux/videodev2.h,[SUPPORTED_V4L2_old=true],[], [#include <asm/types.h>])
|
||||
fi
|
||||
|
||||
|
||||
if test x$SUPPORTED_V4L2_old = xtrue; then
|
||||
TEMP_CFLAGS="${TEMP_CFLAGS} -DMOTION_V4L2 -DMOTION_V4L2_OLD"
|
||||
SUPPORTED_V4L2=true
|
||||
fi
|
||||
|
||||
fi
|
||||
|
||||
|
||||
|
||||
6
video.h
6
video.h
@@ -10,12 +10,12 @@
|
||||
#ifndef _INCLUDE_VIDEO_H
|
||||
#define _INCLUDE_VIDEO_H
|
||||
|
||||
#define _LINUX_TIME_H 1
|
||||
#include <sys/mman.h>
|
||||
|
||||
|
||||
#if !defined(WITHOUT_V4L)
|
||||
#if defined(HAVE_LINUX_VIDEODEV_H)
|
||||
#if defined(HAVE_LINUX_VIDEODEV2_H)
|
||||
#include <linux/videodev2.h>
|
||||
#elif defined(HAVE_LINUX_VIDEODEV_H)
|
||||
#include <linux/videodev.h>
|
||||
#elif defined(HAVE_SYS_VIDEOIO_H)
|
||||
#include <sys/videoio.h>
|
||||
|
||||
Reference in New Issue
Block a user