From 9aca4358ee4684ef55f0e8ad7319d74d90087e60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Thu, 3 Dec 2020 14:15:24 +0100 Subject: [PATCH] brltty: fix build w/ musl-1.2.1 (time64) --- srcpkgs/brltty/patches/time64.patch | 16 ++++++++++++++++ srcpkgs/brltty/template | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/brltty/patches/time64.patch diff --git a/srcpkgs/brltty/patches/time64.patch b/srcpkgs/brltty/patches/time64.patch new file mode 100644 index 00000000000..7efc1c7e54a --- /dev/null +++ b/srcpkgs/brltty/patches/time64.patch @@ -0,0 +1,16 @@ +--- Programs/system_linux.c 2020-04-05 12:35:34.000000000 +0200 ++++ 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; diff --git a/srcpkgs/brltty/template b/srcpkgs/brltty/template index 53e15ed6ff0..76d56520dac 100644 --- a/srcpkgs/brltty/template +++ b/srcpkgs/brltty/template @@ -1,7 +1,7 @@ # Template file for 'brltty' pkgname=brltty version=6.1 -revision=1 +revision=2 build_style=gnu-configure configure_args="--enable-gpm --with-screen-driver=lx,sc --with-tables-directory=/usr/share/brltty PYTHON=/usr/bin/python3"