diff options
author | Koop Mast <kwm@rainbow-runner.nl> | 2012-12-14 22:25:08 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2012-12-17 11:17:26 +0100 |
commit | 6b83cebb77d0d02acc2153ff06fd1cd3e4beab12 (patch) | |
tree | 2d1225221982668bda2cef87c4ac08976df500eb | |
parent | 0d83fd364ffea2c470c445617550efd99ebb4f16 (diff) |
v4l2: Teach where the videodev2.h header lives on freebsd.
https://bugzilla.gnome.org/show_bug.cgi?id=690233
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | sys/v4l2/gstv4l2object.h | 8 |
2 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 768837dfc..2ffd759e0 100644 --- a/configure.ac +++ b/configure.ac @@ -471,6 +471,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 @@ -512,6 +514,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 diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h index 257ec7f1b..9b3c5d270 100644 --- a/sys/v4l2/gstv4l2object.h +++ b/sys/v4l2/gstv4l2object.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> |