mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 20:05:38 +00:00
v4l2: Teach where the videodev2.h header lives on freebsd.
https://bugzilla.gnome.org/show_bug.cgi?id=690233
This commit is contained in:
parent
7e47e3b92d
commit
0bcf8ecd93
2 changed files with 9 additions and 3 deletions
|
@ -476,6 +476,8 @@ AG_GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [
|
|||
#ifdef __sun /* Solaris */
|
||||
#include <sys/types.h>
|
||||
#include <sys/videodev2.h>
|
||||
#elif __FreeBSD__
|
||||
#include <linux/videodev2.h>
|
||||
#else /* Linux */
|
||||
#include <linux/types.h>
|
||||
#define _LINUX_TIME_H
|
||||
|
@ -517,6 +519,8 @@ return 0;
|
|||
#ifdef __sun /* Solaris */
|
||||
#include <sys/types.h>
|
||||
#include <sys/videodev2.h>
|
||||
#elif __FreeBSD__
|
||||
#include <linux/videodev2.h>
|
||||
#else /* Linux */
|
||||
#include <linux/types.h>
|
||||
#define _LINUX_TIME_H
|
||||
|
|
|
@ -38,13 +38,15 @@
|
|||
*/
|
||||
#include <sys/ioctl.h>
|
||||
#include <sys/types.h>
|
||||
#ifndef __sun
|
||||
#ifdef __sun
|
||||
#include <sys/videodev2.h>
|
||||
#elif defined(__FreeBSD__)
|
||||
#include <linux/videodev2.h>
|
||||
#else /* linux */
|
||||
#include <linux/types.h>
|
||||
#define _LINUX_TIME_H
|
||||
#define __user
|
||||
#include <linux/videodev2.h>
|
||||
#else
|
||||
#include <sys/videodev2.h>
|
||||
#endif
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
|
Loading…
Reference in a new issue