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