From 60c57792d9ff316f628cae00b363ccb946074b76 Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Wed, 9 Aug 2023 16:48:39 +0200 Subject: [PATCH] t/common: Fix build with XRT_BUILD_DRIVER_VIVE=OFF. vive_source.h always needs to be included for vive_source_hook_into_sinks. vive_device.h always needs to be included for vive_tracking_status struct. --- src/xrt/targets/common/target_builder_lighthouse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xrt/targets/common/target_builder_lighthouse.c b/src/xrt/targets/common/target_builder_lighthouse.c index 9eb2c3846..e74efef1e 100644 --- a/src/xrt/targets/common/target_builder_lighthouse.c +++ b/src/xrt/targets/common/target_builder_lighthouse.c @@ -27,6 +27,8 @@ #include "vive/vive_common.h" #include "vive/vive_config.h" #include "vive/vive_calibration.h" +#include "vive/vive_device.h" +#include "vive/vive_source.h" #include "v4l2/v4l2_interface.h" #include "xrt/xrt_frameserver.h" @@ -38,8 +40,6 @@ #ifdef XRT_BUILD_DRIVER_VIVE #include "vive/vive_prober.h" -#include "vive/vive_device.h" -#include "vive/vive_source.h" #endif #ifdef XRT_BUILD_DRIVER_SURVIVE