summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2006-01-05 19:14:13 +0000
committerPierre Ossman <ossman@cendio.se>2006-01-05 19:14:13 +0000
commit719223825e56e580dd0c02e09d13f8a7be8c89a3 (patch)
tree5c8a6d5bb92fed779d1f0c51d0a3f10dc72e290c
parentc5bee95cdf30661b4090d86f4e0ab36109228fae (diff)
Old kernel headers didn't define the input_id structure. Therefore we cannot
rely on it. git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/ossman@386 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--polyp/module-mmkbd-evdev.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/polyp/module-mmkbd-evdev.c b/polyp/module-mmkbd-evdev.c
index 758aaae5..5368af50 100644
--- a/polyp/module-mmkbd-evdev.c
+++ b/polyp/module-mmkbd-evdev.c
@@ -49,6 +49,17 @@ PA_MODULE_USAGE("device=<evdev device> sink=<sink name>")
#define DEFAULT_DEVICE "/dev/input/event0"
+/*
+ * This isn't defined in older kernel headers and there is no way of
+ * detecting it.
+ */
+struct _input_id {
+ __u16 bustype;
+ __u16 vendor;
+ __u16 product;
+ __u16 version;
+};
+
static const char* const valid_modargs[] = {
"device",
"sink",
@@ -136,7 +147,7 @@ int pa__init(struct pa_core *c, struct pa_module*m) {
struct pa_modargs *ma = NULL;
struct userdata *u;
int version;
- struct input_id input_id;
+ struct _input_id input_id;
char name[256];
uint8_t evtype_bitmask[EV_MAX/8 + 1];
assert(c && m);