mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-05 13:28:16 +00:00
build: Fix meson build without v4l2
This commit is contained in:
parent
c709b64ce2
commit
3b87d518c4
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue