x11-plugins/wmMatrix: use real usleep()

Closes: https://bugs.gentoo.org/898924
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2023-03-10 12:40:28 +01:00
parent a3e4abce15
commit d3293edd9d

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2020 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -27,6 +27,12 @@ PATCHES=(
"${FILESDIR}"/${P}-fno-common.patch
)
src_prepare() {
default
# Use real usleep on modern systems
sed -e "s/short_uusleep/usleep/" -i wmMatrix.c || die
}
src_compile() {
# this version is distributed with compiled binaries!
make clean