fingerprint-gui: patch for musl-1.2.x
This commit is contained in:
parent
f7fbd13854
commit
11106c5970
29
srcpkgs/fingerprint-gui/patches/time64.patch
Normal file
29
srcpkgs/fingerprint-gui/patches/time64.patch
Normal file
@ -0,0 +1,29 @@
|
||||
Index: src/FingerprintHelper.cpp
|
||||
===================================================================
|
||||
--- src/FingerprintHelper.cpp.orig
|
||||
+++ src/FingerprintHelper.cpp
|
||||
@@ -75,9 +75,12 @@ void pluginMessage(const char *msg){
|
||||
// Send <enter> to uinput
|
||||
bool uinputSendEnter(int uinput){
|
||||
struct input_event event;
|
||||
+ struct timeval tv = { 0, 0 };
|
||||
memset(&event,0,sizeof(event));
|
||||
// PRESS
|
||||
- gettimeofday(&event.time,NULL);
|
||||
+ gettimeofday(&tv,NULL);
|
||||
+ event.input_event_sec = tv.tv_sec;
|
||||
+ event.input_event_usec = tv.tv_usec;
|
||||
event.type=EV_KEY;
|
||||
event.code=KEY_ENTER;
|
||||
event.value=1;
|
||||
@@ -93,7 +96,9 @@ bool uinputSendEnter(int uinput){
|
||||
return false;
|
||||
}
|
||||
// RELEASE
|
||||
- gettimeofday(&event.time,NULL);
|
||||
+ gettimeofday(&tv,NULL);
|
||||
+ event.input_event_sec = tv.tv_sec;
|
||||
+ event.input_event_usec = tv.tv_usec;
|
||||
event.type=EV_KEY;
|
||||
event.code=KEY_ENTER;
|
||||
event.value=0;
|
Loading…
x
Reference in New Issue
Block a user