libv4l: fix EVIOCSCLOCKID related compile failure
PATCH 1/1 libv4l: fix EVIOCSCLOCKID related compile failure
Fixes [1]:
keytable.c: In function 'test_event':
keytable.c:1351:12: error: 'EVIOCSCLOCKID' undeclared (first use in this function)
ioctl(fd, EVIOCSCLOCKID, &mode);
[1] http://autobuild.buildroot.net/results/8ba380471423bd2491e40103d7b1a45de1bd12ed
--- ...fix-EVIOCSCLOCKID-related-compile-failure.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/libv4l/0002-keytable-fix-EVIOCSCLOCKID-related-compile-failure.patch
package/libv4l/0002-keytable-fix-EVIOCSCLOCKID-related-compile-failure.patch new file +35 -0
@@ -0,0 +1,35 @@ +From 663b7be9d27c979c914011a3ce707e227987bc59 Mon Sep 17 00:00:00 2001 +From: Peter Seiderer <[email protected]> +Date: Sat, 3 Feb 2018 22:47:18 +0100 +Subject: [PATCH] keytable: fix EVIOCSCLOCKID related compile failure + +Fixes: + + keytable.c: In function 'test_event': + keytable.c:1351:12: error: 'EVIOCSCLOCKID' undeclared (first use in this function) + ioctl(fd, EVIOCSCLOCKID, &mode); + ^~~~~~~~~~~~~ + +Signed-off-by: Peter Seiderer <[email protected]> +--- + utils/keytable/keytable.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/utils/keytable/keytable.c b/utils/keytable/keytable.c +index 34a1522e..925eab00 100644 +--- a/utils/keytable/keytable.c ++++ b/utils/keytable/keytable.c +@@ -55,6 +55,10 @@ struct input_keymap_entry_v2 { + u_int8_t scancode[32]; + }; + ++#ifndef EVIOCSCLOCKID ++#define EVIOCSCLOCKID _IOW('E', 0xa0, int) ++#endif ++ + #ifndef EVIOCGKEYCODE_V2 + #define EVIOCGKEYCODE_V2 _IOR('E', 0x04, struct input_keymap_entry_v2) + #define EVIOCSKEYCODE_V2 _IOW('E', 0x04, struct input_keymap_entry_v2) +-- +2.16.1 +
Signature · 1 line
2.16.1
Thomas Petazzoni
AppliedPATCH 1/1 libv4l: fix EVIOCSCLOCKID related compile failure
Hello,
Quoted 6 lines · Peter Seiderer
Fixes [1]:
keytable.c: In function 'test_event':
keytable.c:1351:12: error: 'EVIOCSCLOCKID' undeclared (first use in this function)ioctl(fd, EVIOCSCLOCKID, &mode);
Quoted 7 lines
[1] http://autobuild.buildroot.net/results/8ba380471423bd2491e40103d7b1a45de1bd12ed
Signed-off-by Peter Seiderer <[email protected]>--- ...fix-EVIOCSCLOCKID-related-compile-failure.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/libv4l/0002-keytable-fix-EVIOCSCLOCKID-related-compile-failure.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/1 libv4l: fix EVIOCSCLOCKID related compile failure
Hello,
Quoted 11 lines · Thomas Petazzoni
Hello,
Quoted 8 lines · Peter Seiderer
Fixes [1]:
keytable.c: In function 'test_event':
keytable.c:1351:12: error: 'EVIOCSCLOCKID' undeclared (first use in this function)ioctl(fd, EVIOCSCLOCKID, &mode);[1] http://autobuild.buildroot.net/results/8ba380471423bd2491e40103d7b1a45de1bd12ed
Quoted 7 lines
Quoted 5 lines
Signed-off-by Peter Seiderer <[email protected]>--- ...fix-EVIOCSCLOCKID-related-compile-failure.patch | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 package/libv4l/0002-keytable-fix-EVIOCSCLOCKID-related-compile-failure.patchApplied to master, thanks.
And upstream submitted, see [2]...
Regards,
Peter
[2] https://www.spinics.net/lists/linux-media/msg128533.html
Quoted 2 lines
Thomas
PATCH 1/1 libv4l: fix EVIOCSCLOCKID related compile failure
Quoted 10 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Seiderer <[email protected]> writes:
Applied to master, thanks.
And upstream submitted, see [2]...
Regards,
Peter[2] https://www.spinics.net/lists/linux-media/msg128533.html
Great, thanks!
Signature · 1 line
Bye, Peter Korsgaard