]> gitweb @ CieloNegro.org - pkgsrc-cinelerra-cv.git/blob - patches/patch-vdevicev4l_h
shmmax patch
[pkgsrc-cinelerra-cv.git] / patches / patch-vdevicev4l_h
1 $NetBSD$
2
3 --- cinelerra/vdevicev4l.h.orig 2010-02-01 08:26:23.000000000 +0000
4 +++ cinelerra/vdevicev4l.h
5 @@ -23,7 +23,9 @@
6  #define VDEVICEV4L_H
7  
8  #include "vdevicebase.h"
9 -#include <linux/videodev.h>
10 +#if defined(HAVE_LINUX_VIDEODEV_H)
11 +#  include <linux/videodev.h>
12 +#endif
13  #include "videodevice.inc"
14  
15  class VDeviceV4L : public VDeviceBase
16 @@ -66,10 +68,12 @@ private:
17         int colormodel;
18  
19  // Video4Linux
20 +#if defined(HAVE_LINUX_VIDEODEV_H)
21         struct video_capability cap1;
22         struct video_window window_params;
23         struct video_picture picture_params;
24         struct video_mbuf capture_params;  // Capture for Video4Linux
25 +#endif
26  
27  // Common
28         char *capture_buffer;      // sequentual capture buffers for v4l1 or read buffer for v4l2