File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 45
45
46
46
#include "hidapi.h"
47
47
48
+ #ifdef HIDAPI_ALLOW_BUILD_WORKAROUND_KERNEL_2_6_39
49
+ /* This definitions first appeared in Linux Kernel 2.6.39 in linux/hidraw.h.
50
+ hidapi doesn't support kernels older than that,
51
+ so we don't define macros below explicitly, to fail builds on old kernels.
52
+ For those who really need this as a workaround (e.g. to be able to build on old build machines),
53
+ can workaround by defining the macro above.
54
+ */
55
+ #ifndef HIDIOCSFEATURE
56
+ #define HIDIOCSFEATURE (len ) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
57
+ #endif
58
+ #ifndef HIDIOCGFEATURE
59
+ #define HIDIOCGFEATURE (len ) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
60
+ #endif
61
+
62
+ #endif
63
+
48
64
49
65
/* USB HID device property names */
50
66
const char * device_string_names [] = {
You can’t perform that action at this time.
0 commit comments