t/common: Fix missing ifdef guard in target builder remote.

This commit is contained in:
Ryan Pavlik 2022-05-18 10:37:04 -05:00
parent fad9eb0e12
commit e5b0840de3

View file

@ -82,8 +82,10 @@ remote_open_system(struct xrt_builder *xb, cJSON *config, struct xrt_prober *xp,
}
struct xrt_device *head = NULL, *left = NULL, *right = NULL;
r_create_devices(port, &head, &left, &right);
#ifdef XRT_BUILD_DRIVER_REMOTE
r_create_devices(port, &head, &left, &right);
#endif
if (head == NULL) {
u_system_devices_destroy(&usysd);
xrt_device_destroy(&left);