Commit 0bcf8ecd authored by Koop Mast's avatar Koop Mast Committed by Sebastian Dröge

v4l2: Teach where the videodev2.h header lives on freebsd.

https://bugzilla.gnome.org/show_bug.cgi?id=690233
parent 7e47e3b9
......@@ -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>
......
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