On Mon, 18 Mar 2024 at 09:12:36 +0100, Sebastian Ramacher wrote: > arm-linux-gnueabihf-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g > -Werror=implicit-function-declaration -fstack-protector-strong > -fstack-clash-protection -Wformat -Werror=format-security -g -O2 > -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. > -fstack-protector-strong -fstack-clash-protection -Wformat > -Werror=format-security -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC > -I/usr/include/python3.11 -c libsuinput/src/suinput.c -o > build/temp.linux-armv7l-cpython-311/libsuinput/src/suinput.o > libsuinput/src/suinput.c: In function ‘suinput_emit’: > libsuinput/src/suinput.c:48:28: error: ‘struct input_event’ has no member > named ‘time’ > 48 | gettimeofday(&event.time, 0); > | ^
This is probably the same thing fixed by <https://github.com/libsdl-org/SDL/pull/7884/files>. Untested pseudocode for a fix: -gettimeofday(&event.time, 0); +struct timeval timestamp; +gettimeofday(×tamp, 0); +event.input_event_sec = timestamp.tv_sec; +event.input_event_usec = timestamp.tv_usec; smcv