From a97eca42c4518194643a2c99e438186fa2ed9fcc Mon Sep 17 00:00:00 2001 From: Alex Diaz Date: Tue, 16 May 2023 23:08:42 -0400 Subject: [PATCH] fix: build on fedora:latest 1. libusb has been renamed to libusb1 2. It seems newer GCC detected a missing include for --- include/rd_mouse_wireless.h | 1 + mouse_m908.spec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rd_mouse_wireless.h b/include/rd_mouse_wireless.h index 45e378a..0a6bca1 100644 --- a/include/rd_mouse_wireless.h +++ b/include/rd_mouse_wireless.h @@ -23,6 +23,7 @@ #include #include #include +#include /** * This class holds data that is shared between the wireless mice. diff --git a/mouse_m908.spec b/mouse_m908.spec index 5e517ec..99d6bda 100644 --- a/mouse_m908.spec +++ b/mouse_m908.spec @@ -12,7 +12,7 @@ Summary: Control Redragon gaming mice from Linux, BSD and Haiku License: GPL v3 URL: https://github.com/dokutan/mouse_m908 -BuildRequires: gcc-c++ libusb libusb-devel make +BuildRequires: gcc-c++ libusb1 libusb1-devel make Requires: libusb ExclusiveArch: x86_64