From dba2a3778fc8159f43172a3d560766a7fba5fe39 Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Tue, 30 Dec 2025 14:36:39 +0100 Subject: [PATCH] Include USB header only if HAVE_USB --- app/src/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main.c b/app/src/main.c index 968b1934..b4897456 100644 --- a/app/src/main.c +++ b/app/src/main.c @@ -11,7 +11,9 @@ #include "cli.h" #include "options.h" #include "scrcpy.h" -#include "usb/scrcpy_otg.h" +#ifdef HAVE_USB +# include "usb/scrcpy_otg.h" +#endif #include "util/log.h" #include "util/net.h" #include "util/thread.h"