Francois Gouget : qcap: Fix compilation on systems that have v4l1 but not VIDIOCMCAPTURE & co.

Alexandre Julliard julliard at winehq.org
Wed Mar 6 13:11:54 CST 2013


Module: wine
Branch: master
Commit: e920d1a661de133e941eb07bf0ad8ead0b0f38d9
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e920d1a661de133e941eb07bf0ad8ead0b0f38d9

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed Mar  6 15:11:40 2013 +0100

qcap: Fix compilation on systems that have v4l1 but not VIDIOCMCAPTURE & co.

---

 dlls/qcap/v4l.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/qcap/v4l.c b/dlls/qcap/v4l.c
index 41cc752..0880499 100644
--- a/dlls/qcap/v4l.c
+++ b/dlls/qcap/v4l.c
@@ -71,7 +71,7 @@
 
 WINE_DEFAULT_DEBUG_CHANNEL(qcap_v4l);
 
-#if defined(HAVE_LINUX_VIDEODEV_H) || defined(HAVE_LIBV4L1_H)
+#ifdef VIDIOCMCAPTURE
 
 static typeof(open) *video_open = open;
 static typeof(close) *video_close = close;
@@ -973,4 +973,4 @@ HRESULT qcap_driver_stop(Capture *capBox, FILTER_STATE *state)
     FAIL_WITH_ERR;
 }
 
-#endif /* HAVE_LINUX_VIDEODEV_H || HAVE_LINUX_LIBV4L1_H */
+#endif /* defined(VIDIOCMCAPTURE) */




More information about the wine-cvs mailing list