v4l2: Teach where the videodev2.h header lives on freebsd.
authorKoop Mast <kwm@rainbow-runner.nl>
Fri, 14 Dec 2012 22:25:08 +0000 (22:25 +0000)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 17 Dec 2012 10:17:01 +0000 (11:17 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=690233

configure.ac
sys/v4l2/gstv4l2object.h

index db3b1a7..a92f3ef 100644 (file)
@@ -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
index 9fbc503..361181a 100644 (file)
  */
 #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>