Skip to content

Commit

Permalink
hidapi/linux/hid.c: define BUS_SPI if not already defined.
Browse files Browse the repository at this point in the history
  • Loading branch information
sezero committed May 30, 2023
1 parent 19c10b4 commit 20dfb7d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/hidapi/linux/hid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 20dfb7d

Please sign in to comment.