diff options
Diffstat (limited to 'app-misc/screen/screen-4.6.2.ebuild')
-rw-r--r-- | app-misc/screen/screen-4.6.2.ebuild | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app-misc/screen/screen-4.6.2.ebuild b/app-misc/screen/screen-4.6.2.ebuild index 5de7a9460c3f..74566a73346f 100644 --- a/app-misc/screen/screen-4.6.2.ebuild +++ b/app-misc/screen/screen-4.6.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Foundation +# Copyright 1999-2018 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -60,10 +60,13 @@ src_prepare() { doc/screen.1 \ || die - if [[ ${CHOST} == *-darwin* ]] ; then + if [[ ${CHOST} == *-darwin* ]] || use elibc_musl ; then sed -i -e '/^#define UTMPOK/s/define/undef/' acconfig.h || die fi + # disable musl dummy headers for utmp[x] + use elibc_musl && append-cppflags "-D_UTMP_H -D_UTMPX_H" + # reconfigure eautoreconf } |