Add patch to fix ir-keytable -r
Submitted by: nox@ Approved by: maintainer
This commit is contained in:
parent
bbd0bbbec3
commit
19a753f745
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277815
2 changed files with 18 additions and 0 deletions
|
@ -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/
|
||||
|
|
17
multimedia/webcamd/files/patch-input.h
Normal file
17
multimedia/webcamd/files/patch-input.h
Normal file
|
@ -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)
|
||||
|
Loading…
Reference in a new issue