From 20dfb7df2c7b658ddacf6a835f9a9c6bd6f9c07a Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 31 May 2023 01:55:40 +0300 Subject: [PATCH] hidapi/linux/hid.c: define BUS_SPI if not already defined. --- src/hidapi/linux/hid.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/hidapi/linux/hid.c b/src/hidapi/linux/hid.c index 9000caf9d..a364ac2e0 100644 --- a/src/hidapi/linux/hid.c +++ b/src/hidapi/linux/hid.c @@ -44,6 +44,10 @@ #include "../hidapi/hidapi.h" +#ifndef BUS_SPI +#define BUS_SPI 0x1C +#endif + #ifdef HIDAPI_ALLOW_BUILD_WORKAROUND_KERNEL_2_6_39 /* This definitions first appeared in Linux Kernel 2.6.39 in linux/hidraw.h. hidapi doesn't support kernels older than that,