From 0bcf8ecd93bd58e6ea75f39c38013458355560e4 Mon Sep 17 00:00:00 2001 From: Koop Mast Date: Fri, 14 Dec 2012 22:25:08 +0000 Subject: [PATCH] v4l2: Teach where the videodev2.h header lives on freebsd. https://bugzilla.gnome.org/show_bug.cgi?id=690233 --- configure.ac | 4 ++++ sys/v4l2/gstv4l2object.h | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index db3b1a73b8..a92f3ef8b8 100644 --- a/configure.ac +++ b/configure.ac @@ -476,6 +476,8 @@ AG_GST_CHECK_FEATURE(GST_V4L2, [Video 4 Linux 2], v4l2src, [ #ifdef __sun /* Solaris */ #include #include +#elif __FreeBSD__ +#include #else /* Linux */ #include #define _LINUX_TIME_H @@ -517,6 +519,8 @@ return 0; #ifdef __sun /* Solaris */ #include #include +#elif __FreeBSD__ +#include #else /* Linux */ #include #define _LINUX_TIME_H diff --git a/sys/v4l2/gstv4l2object.h b/sys/v4l2/gstv4l2object.h index 9fbc503801..361181a48e 100644 --- a/sys/v4l2/gstv4l2object.h +++ b/sys/v4l2/gstv4l2object.h @@ -38,13 +38,15 @@ */ #include #include -#ifndef __sun +#ifdef __sun +#include +#elif defined(__FreeBSD__) +#include +#else /* linux */ #include #define _LINUX_TIME_H #define __user #include -#else -#include #endif #include