xboxdrv: fix build w/ musl-1.2.1 (time64)
This commit is contained in:
16
srcpkgs/xboxdrv/patches/time64.patch
Normal file
16
srcpkgs/xboxdrv/patches/time64.patch
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
--- src/linux_uinput.cpp 2015-11-09 11:19:35.000000000 +0100
|
||||||
|
+++ src/linux_uinput.cpp 2020-12-06 17:53:41.472516394 +0100
|
||||||
|
@@ -289,9 +289,12 @@
|
||||||
|
needs_sync = true;
|
||||||
|
|
||||||
|
struct input_event ev;
|
||||||
|
+ struct timeval tv;
|
||||||
|
memset(&ev, 0, sizeof(ev));
|
||||||
|
|
||||||
|
- gettimeofday(&ev.time, NULL);
|
||||||
|
+ gettimeofday(&tv, NULL);
|
||||||
|
+ ev.input_event_sec = tv.tv_sec;
|
||||||
|
+ ev.input_event_usec = tv.tv_usec;
|
||||||
|
ev.type = type;
|
||||||
|
ev.code = code;
|
||||||
|
if (ev.type == EV_KEY)
|
||||||
Reference in New Issue
Block a user