Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248508
b: refs/heads/master
c: cb3e85f
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Kosina committed Apr 8, 2011
1 parent c473e08 commit 5b5ffbf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a978c50c6cff743c3516ffa6d2ce44382e7b70b
refs/heads/master: cb3e85fe19575cce8af82bc62a070c72e8f781b8
11 changes: 11 additions & 0 deletions trunk/samples/hidraw/hid-example.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@
#include <linux/input.h>
#include <linux/hidraw.h>

/*
* Ugly hack to work around failing compilation on systems that don't
* yet populate new version of hidraw.h to userspace.
*
* If you need this, please have your distro update the kernel headers.
*/
#ifndef HIDIOCSFEATURE
#define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
#define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
#endif

/* Unix */
#include <sys/ioctl.h>
#include <sys/types.h>
Expand Down

0 comments on commit 5b5ffbf

Please sign in to comment.