summaryrefslogtreecommitdiffstats
path: root/multimedia/gstreamer1-plugins-good/files/patch-sys_v4l2_gstv4l2object.h
blob: af186ea7ff3aff23c24373a2261679d70aa0af4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- sys/v4l2/gstv4l2object.h.orig   2010-02-11 17:52:41.000000000 +0100
+++ sys/v4l2/gstv4l2object.h    2010-02-11 17:57:50.000000000 +0100
@@ -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>