summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-auth')
-rw-r--r--sys-auth/passwdqc/passwdqc-1.3.0.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/sys-auth/passwdqc/passwdqc-1.3.0.ebuild b/sys-auth/passwdqc/passwdqc-1.3.0.ebuild
index c7c1daee1bc..6dc27030a78 100644
--- a/sys-auth/passwdqc/passwdqc-1.3.0.ebuild
+++ b/sys-auth/passwdqc/passwdqc-1.3.0.ebuild
@@ -27,6 +27,11 @@ src_prepare() {
sed -i \
-e 's:`uname -s`:Linux:' \
Makefile || die
+ # See if the system has a shadow.h. #554504
+ echo '#include <shadow.h>' > "${T}"/test.c
+ if ! $(tc-getCPP) ${CPPFLAGS} "${T}"/test.c >& /dev/null ; then
+ sed -i -e 's:-DHAVE_SHADOW::' Makefile || die
+ fi
}
_emake() {