* My OpenBSD ports
       
   URI git clone git://git.codevoid.de/mystuff.git
   DIR Log
   DIR Files
   DIR Refs
       ---
       patch-plugins_linux-v4l2_v4l2-input_c (922B)
       ---
            1 $OpenBSD$
            2 
            3 Index: plugins/linux-v4l2/v4l2-input.c
            4 --- plugins/linux-v4l2/v4l2-input.c.orig
            5 +++ plugins/linux-v4l2/v4l2-input.c
            6 @@ -26,7 +26,11 @@ along with this program.  If not, see <http://www.gnu.
            7  #include <sys/ioctl.h>
            8  #include <sys/select.h>
            9  
           10 +#if defined(__OpenBSD__)
           11 +#include <sys/videoio.h>
           12 +#else
           13  #include <linux/videodev2.h>
           14 +#endif
           15  #include <libv4l2.h>
           16  
           17  #include <util/threading.h>
           18 @@ -275,7 +279,7 @@ static void v4l2_device_list(obs_property_t *prop, obs
           19          size_t cur_device_index;
           20          const char *cur_device_name;
           21  
           22 -#ifdef __FreeBSD__
           23 +#ifdef __FreeBSD__ || __OpenBSD__
           24          dirp = opendir("/dev");
           25  #else
           26          dirp = opendir("/sys/class/video4linux");
           27 @@ -295,7 +299,7 @@ static void v4l2_device_list(obs_property_t *prop, obs
           28                  uint32_t caps;
           29                  struct v4l2_capability video_cap;
           30  
           31 -#ifdef __FreeBSD__
           32 +#ifdef __FreeBSD__ || __OpenBSD__
           33                  if (strstr(dp->d_name, "video") == NULL)
           34                          continue;
           35  #endif