From 3d0235a450397e393f725e4f7a85ca856b2a6b53 Mon Sep 17 00:00:00 2001 From: Christoph Haag Date: Mon, 21 Sep 2020 20:21:36 +0200 Subject: [PATCH] st/prober: Fix build with v4l2 disabled --- src/xrt/state_trackers/prober/p_udev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xrt/state_trackers/prober/p_udev.c b/src/xrt/state_trackers/prober/p_udev.c index d3cc0dfa8..ba62a573e 100644 --- a/src/xrt/state_trackers/prober/p_udev.c +++ b/src/xrt/state_trackers/prober/p_udev.c @@ -385,6 +385,7 @@ p_udev_add_v4l(struct prober_device *pdev, uint32_t usb_iface, const char *path) { +#ifdef XRT_HAVE_V4L2 U_ARRAY_REALLOC_OR_FREE(pdev->v4ls, struct prober_v4l, (pdev->num_v4ls + 1)); @@ -394,6 +395,7 @@ p_udev_add_v4l(struct prober_device *pdev, v4l->usb_iface = usb_iface; v4l->v4l_index = v4l_index; v4l->path = strdup(path); +#endif } static void