From: Vadim Pisarevsky Date: Mon, 2 Aug 2010 12:55:20 +0000 (+0000) Subject: fixed "undefined cvCreateCameraCapture_V4L" linker errors on some linux distros ... X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~8833 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3510b4c81e3f388c4c20051974016a5118f1dbe4;p=platform%2Fupstream%2Fopencv.git fixed "undefined cvCreateCameraCapture_V4L" linker errors on some linux distros (thanks to miguelinux for the patch) --- diff --git a/modules/highgui/src/cap_v4l.cpp b/modules/highgui/src/cap_v4l.cpp index fcec73d..f84c25e 100644 --- a/modules/highgui/src/cap_v4l.cpp +++ b/modules/highgui/src/cap_v4l.cpp @@ -202,7 +202,7 @@ make & enjoy! #include "precomp.hpp" -#if !defined WIN32 && defined HAVE_CAMV4L +#if !defined WIN32 && (defined HAVE_CAMV4L || defined HAVE_CAMV4L2) #define CLEAR(x) memset (&(x), 0, sizeof (x))