From 8603e5d63eb83a25ab1610ab819807e8cfea6a82 Mon Sep 17 00:00:00 2001 From: Ryan Pavlik Date: Tue, 16 May 2023 16:11:11 -0500 Subject: [PATCH] i/client: Fix return type incompatibility on Windows --- src/xrt/ipc/client/ipc_client_instance.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xrt/ipc/client/ipc_client_instance.c b/src/xrt/ipc/client/ipc_client_instance.c index d6c797360..cf25a6230 100644 --- a/src/xrt/ipc/client/ipc_client_instance.c +++ b/src/xrt/ipc/client/ipc_client_instance.c @@ -7,6 +7,7 @@ * @ingroup ipc_client */ +#include "xrt/xrt_results.h" #if defined(_MSC_VER) && !defined(_CRT_SECURE_NO_WARNINGS) #define _CRT_SECURE_NO_WARNINGS #endif @@ -376,12 +377,12 @@ ipc_client_instance_create_system(struct xrt_instance *xinst, return XRT_SUCCESS; } -static int +static xrt_result_t ipc_client_instance_get_prober(struct xrt_instance *xinst, struct xrt_prober **out_xp) { *out_xp = NULL; - return -1; + return XRT_ERROR_PROBER_NOT_SUPPORTED; } static void