Skip setting env vars for winesync if the patchset isn't available for selected kernel

This commit is contained in:
Tk-Glitch
2021-04-28 00:32:05 +02:00
parent 86fc89bc99
commit 4cd7091d0b
2 changed files with 6 additions and 4 deletions

View File

@@ -554,7 +554,7 @@ hackbase() {
install -Dm644 "${srcdir}"/customization-full.cfg "${pkgdir}/usr/share/doc/${pkgbase}/customization.cfg"
# workaround for missing header with winesync
if [ -e ""${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h" ]; then
if [ -e "${srcdir}/${_srcpath}/include/uapi/linux/winesync.h" ]; then
msg2 "Workaround missing winesync header"
install -Dm644 "${srcdir}/${_srcpath}"/include/uapi/linux/winesync.h "${pkgdir}/usr/include/linux/winesync.h"
fi