Commit 0e9a6cca authored by Adam Hoka's avatar Adam Hoka Committed by Rémi Denis-Courmont

V4L2 on NetBSD

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
(cherry picked from commit 0c55b2d8)
parent cd8f0c4b
......@@ -2184,7 +2184,7 @@ then
fi
CPPFLAGS="${CPPFLAGS_save} ${CPPFLAGS_v4l2}"
AC_CHECK_HEADERS(linux/videodev2.h, [
AC_CHECK_HEADERS(linux/videodev2.h sys/videoio.h, [
VLC_ADD_PLUGIN([v4l2])
],[])
CPPFLAGS="${CPPFLAGS_save}"
......
......@@ -51,7 +51,13 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <linux/videodev2.h>
#if defined(HAVE_LINUX_VIDEODEV2_H)
# include <linux/videodev2.h>
#elif defined(HAVE_SYS_VIDEOIO_H)
# include <sys/videoio.h>
#else
# error "No Video4Linux2 headers found."
#endif
#include <poll.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment