xf86-input-mtrack: fix build w/ musl-1.2.1 (time64)

This commit is contained in:
Jürgen Buchmüller 2020-12-02 23:05:25 +01:00
parent c6f26c4b55
commit 721656c62d
2 changed files with 15 additions and 3 deletions

View file

@ -0,0 +1,12 @@
--- src/hwstate.c 2018-01-28 20:46:17.000000000 +0100
+++ src/hwstate.c 2020-12-02 22:58:45.149335108 +0100
@@ -41,7 +41,8 @@
if (!caps->has_abs[MTDEV_WIDTH_MINOR])
s->data[i].width_minor = s->data[i].width_major;
}
- timercp(&s->evtime, &syn->time);
+ s->evtime.tv_sec = syn->input_event_sec;
+ s->evtime.tv_usec = syn->input_event_usec;
}
/*

View file

@ -1,18 +1,18 @@
# Template build file for 'xf86-input-mtrack'.
# Template file for 'xf86-input-mtrack'
pkgname=xf86-input-mtrack
version=0.5.0
revision=1
lib32disabled=yes
build_style=gnu-configure
hostmakedepends="pkg-config xorg-util-macros"
makedepends="xorg-server-devel mtdev-devel"
depends="virtual?xserver-abi-input-24_1"
short_desc="Xorg Multitouch Trackpad Driver"
maintainer="Orphaned <orphan@voidlinux.org>"
homepage="http://xorg.freedesktop.org/"
license="MIT"
homepage="http://xorg.freedesktop.org/"
distfiles="https://github.com/p2rkw/${pkgname}/archive/v${version}.tar.gz"
checksum=a976723720028832afd45bfcaab479f60833ff6f1c780be727d1791675dc14c4
lib32disabled=yes
post_install() {
vlicense COPYING