c6ce65d3d0
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.-][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.-][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
16 lines
568 B
Diff
16 lines
568 B
Diff
--- a/Programs/system_linux.c 2020-04-05 12:35:34.000000000 +0200
|
|
+++ b/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;
|