From 90ee0062cb84b618882f78165f057f58d97b6939 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Fri, 13 Sep 2024 22:00:43 +0200 Subject: [PATCH] Fix compilation with -Dusb=false UHID does not depend on USB support, so the struct sc_uhid_devices must always be defined. --- app/src/scrcpy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/scrcpy.c b/app/src/scrcpy.c index 43864661..aafe108c 100644 --- a/app/src/scrcpy.c +++ b/app/src/scrcpy.c @@ -63,8 +63,8 @@ struct scrcpy { struct sc_aoa aoa; // sequence/ack helper to synchronize clipboard and Ctrl+v via HID struct sc_acksync acksync; - struct sc_uhid_devices uhid_devices; #endif + struct sc_uhid_devices uhid_devices; union { struct sc_keyboard_sdk keyboard_sdk; struct sc_keyboard_uhid keyboard_uhid;