hidapi/linux/hid.c: define BUS_SPI if not already defined.

This commit is contained in:
Ozkan Sezer 2023-05-31 01:55:40 +03:00
parent 19c10b41fd
commit 20dfb7df2c
1 changed files with 4 additions and 0 deletions

View File

@ -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,