mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 12:15:32 +03:00
28 lines
651 B
Diff
28 lines
651 B
Diff
Fix compatibility with musl's time64 on 32-bit arches.
|
|
|
|
See https://gitlab.alpinelinux.org/alpine/aports/-/commit/1d4742aaaea19666bffb2a71a4312da0dcc41f72#note_180127
|
|
|
|
--- a/src/main.c
|
|
+++ b/src/main.c
|
|
@@ -220,8 +220,8 @@
|
|
struct input_event ev = {
|
|
.type = EV_KEY,
|
|
.value = 2,
|
|
- .time.tv_sec = 0,
|
|
- .time.tv_usec = 0
|
|
+ .input_event_sec = 0,
|
|
+ .input_event_usec = 0
|
|
};
|
|
|
|
//Inefficient, but still reasonably fast (<100us)
|
|
@@ -242,8 +242,8 @@
|
|
ev.type = EV_KEY;
|
|
ev.code = code;
|
|
ev.value = is_pressed;
|
|
- ev.time.tv_sec = 0;
|
|
- ev.time.tv_usec = 0;
|
|
+ ev.input_event_sec = 0;
|
|
+ ev.input_event_usec = 0;
|
|
|
|
write(ufd, &ev, sizeof(ev));
|
|
|