void-packages/srcpkgs/evtest/patches/time64.patch

12 lines
414 B
Diff

--- a/evtest.c 2019-08-02 20:14:30.000000000 +0200
+++ b/evtest.c 2020-12-11 15:33:15.895384954 +0100
@@ -1139,7 +1139,7 @@
type = ev[i].type;
code = ev[i].code;
- printf("Event: time %ld.%06ld, ", ev[i].time.tv_sec, ev[i].time.tv_usec);
+ printf("Event: time %lld.%06ld, ", (long long)ev[i].input_event_sec, (long)ev[i].input_event_usec);
if (type == EV_SYN) {
if (code == SYN_MT_REPORT)