dev-lang/perl: use errno.h from prefix, bug #645804

Closes: https://bugs.gentoo.org/645804
Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
Guilherme Amadio
2018-03-02 10:19:33 +01:00
parent e81a0aa10c
commit 475f23e198

View File

@@ -325,6 +325,11 @@ src_prepare() {
ext/NDBM_File/Makefile.PL || die
fi
# Use errno.h from prefix rather than from host system, bug #645804
if use prefix; then
sed -i "/my..sysroot/s:'':'${EPREFIX}':" ext/Errno/Errno_pm.PL || die
fi
default
}