Commit 3b87d518 authored by Christoph Haag's avatar Christoph Haag

build: Fix meson build without v4l2

parent c709b64c
Pipeline #76383 passed with stages
in 5 minutes and 3 seconds
......@@ -138,6 +138,7 @@ if v4l2.found() and ('auto' in drivers or 'v4l2' in drivers)
if 'v4l2' not in drivers
drivers += ['v4l2']
endif
add_project_arguments('-DXRT_HAVE_V4L2', language: ['c', 'cpp'])
endif
if drivers.length() == 0 or drivers == ['auto']
......
......@@ -673,7 +673,7 @@ open_video_device(struct xrt_prober *xp,
{
struct prober_device *pdev = (struct prober_device *)xpdev;
#ifdef XRT_OS_LINUX
#if defined(XRT_OS_LINUX) && defined(XRT_HAVE_V4L2)
if (pdev->num_v4ls == 0) {
return -1;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment