From f72f4377f4cbbe45e5a43bb67c7245737ffa135f Mon Sep 17 00:00:00 2001 From: Levi Behunin <l3ehunin@gmail.com> Date: Mon, 2 May 2022 01:46:48 -0600 Subject: [PATCH] gc_adapter: fix libusb import on GCC11.2 Just to silence an intermittent error. GCC11.2 complains cannot find 'libusb.h' during a fresh build. --- src/input_common/drivers/gc_adapter.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/input_common/drivers/gc_adapter.cpp b/src/input_common/drivers/gc_adapter.cpp index 27a0ffb0d..a2880b9be 100644 --- a/src/input_common/drivers/gc_adapter.cpp +++ b/src/input_common/drivers/gc_adapter.cpp @@ -2,7 +2,11 @@ // SPDX-License-Identifier: GPL-2.0-or-later #include <fmt/format.h> +#ifdef _WIN32 #include <libusb.h> +#else +#include <libusb-1.0/libusb.h> +#endif #include "common/logging/log.h" #include "common/param_package.h"