From 3510b4c81e3f388c4c20051974016a5118f1dbe4 Mon Sep 17 00:00:00 2001 From: Vadim Pisarevsky Date: Mon, 2 Aug 2010 12:55:20 +0000 Subject: [PATCH] fixed "undefined cvCreateCameraCapture_V4L" linker errors on some linux distros (thanks to miguelinux for the patch) --- modules/highgui/src/cap_v4l.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/highgui/src/cap_v4l.cpp b/modules/highgui/src/cap_v4l.cpp index fcec73d8ca..f84c25e62c 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))