summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2011-07-16 21:35:48 +0000
committerkwm <kwm@FreeBSD.org>2011-07-16 21:35:48 +0000
commitba340fe00529dc6e53594c77beab27e0d1999145 (patch)
tree5b0c66535b0fe4c58949581167a1dd4eae40e0bc
parentb835b08aaf5ee7a10f5497898a88629bd98c90f9 (diff)
downloadFreeBSD-ports-ba340fe00529dc6e53594c77beab27e0d1999145.zip
FreeBSD-ports-ba340fe00529dc6e53594c77beab27e0d1999145.tar.gz
Add patch to fix ir-keytable -r
Submitted by: nox@ Approved by: maintainer
-rw-r--r--multimedia/webcamd/Makefile1
-rw-r--r--multimedia/webcamd/files/patch-input.h17
2 files changed, 18 insertions, 0 deletions
diff --git a/multimedia/webcamd/Makefile b/multimedia/webcamd/Makefile
index 4577452..8354457 100644
--- a/multimedia/webcamd/Makefile
+++ b/multimedia/webcamd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= webcamd
PORTVERSION= 3.0.0.1
+PORTREVISION= 1
CATEGORIES= multimedia
MASTER_SITES= http://www.selasky.org/hans_petter/distfiles/ \
http://hselasky.homeunix.org:8192/distfiles/
diff --git a/multimedia/webcamd/files/patch-input.h b/multimedia/webcamd/files/patch-input.h
new file mode 100644
index 0000000..0d7e038
--- /dev/null
+++ b/multimedia/webcamd/files/patch-input.h
@@ -0,0 +1,17 @@
+--- media_tree/include/linux/input.h.orig
++++ media_tree/include/linux/input.h
+@@ -104,8 +104,12 @@ struct input_keymap_entry {
+ #define EVIOCGREP _IOR('E', 0x03, unsigned int[2]) /* get repeat settings */
+ #define EVIOCSREP _IOW('E', 0x03, unsigned int[2]) /* set repeat settings */
+
+-#define EVIOCGKEYCODE _IOR('E', 0x04, unsigned int[2]) /* get keycode */
+-#define EVIOCGKEYCODE_V2 _IOR('E', 0x04, struct input_keymap_entry)
++/*
++ * These two need to be _IOWR not _IOR (they're wrong on Linux too but
++ * there the driver doesn't care.)
++ */
++#define EVIOCGKEYCODE _IOWR('E', 0x04, unsigned int[2]) /* get keycode */
++#define EVIOCGKEYCODE_V2 _IOWR('E', 0x04, struct input_keymap_entry)
+ #define EVIOCSKEYCODE _IOW('E', 0x04, unsigned int[2]) /* set keycode */
+ #define EVIOCSKEYCODE_V2 _IOW('E', 0x04, struct input_keymap_entry)
+
OpenPOWER on IntegriCloud