mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-09 00:23:52 +02:00
brltty: fix build w/ musl-1.2.1 (time64)
This commit is contained in:
parent
3c65add1b2
commit
a421bb85c2
1 changed files with 16 additions and 0 deletions
16
srcpkgs/brltty/patches/time64.patch
Normal file
16
srcpkgs/brltty/patches/time64.patch
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
--- Programs/system_linux.c 2020-04-05 12:35:34.000000000 +0200
|
||||||
|
+++ Programs/system_linux.c 2020-12-03 14:12:42.292642038 +0100
|
||||||
|
@@ -957,9 +957,12 @@
|
||||||
|
writeInputEvent (UinputObject *uinput, uint16_t type, uint16_t code, int32_t value) {
|
||||||
|
#ifdef HAVE_LINUX_UINPUT_H
|
||||||
|
struct input_event event;
|
||||||
|
+ struct timeval tv;
|
||||||
|
|
||||||
|
memset(&event, 0, sizeof(event));
|
||||||
|
- gettimeofday(&event.time, NULL);
|
||||||
|
+ gettimeofday(&tv, NULL);
|
||||||
|
+ event.input_event_sec = tv.tv_sec;
|
||||||
|
+ event.input_event_usec = tv.tv_usec;
|
||||||
|
event.type = type;
|
||||||
|
event.code = code;
|
||||||
|
event.value = value;
|
Loading…
Add table
Reference in a new issue