st/prober: use RS_SOURCE_INDEX only if XRT_HAVE_OPENCV and XRT_BUILD_DRIVER_REALSENSE are defined

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2272>
This commit is contained in:
Simon Zeni 2024-08-16 09:18:12 -04:00 committed by Rylie Pavlik
parent 6f32def5f9
commit 4da8066140

View file

@ -34,7 +34,7 @@
DEBUG_GET_ONCE_OPTION(euroc_path, "EUROC_PATH", NULL)
#endif
#ifdef XRT_BUILD_DRIVER_REALSENSE
#if defined(XRT_HAVE_OPENCV) && defined(XRT_BUILD_DRIVER_REALSENSE)
#include "util/u_debug.h"
DEBUG_GET_ONCE_NUM_OPTION(rs_source_index, "RS_SOURCE_INDEX", -1)
#endif