summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/rhash')
-rw-r--r--app-crypt/rhash/rhash-1.4.0.ebuild7
1 files changed, 7 insertions, 0 deletions
diff --git a/app-crypt/rhash/rhash-1.4.0.ebuild b/app-crypt/rhash/rhash-1.4.0.ebuild
index e777c4b21ffd..88a8e3ebfe3f 100644
--- a/app-crypt/rhash/rhash-1.4.0.ebuild
+++ b/app-crypt/rhash/rhash-1.4.0.ebuild
@@ -32,6 +32,13 @@ S="${WORKDIR}/RHash-${PV}"
src_prepare() {
default
+
+ if [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] ; then
+ # we lack posix_memalign
+ sed -i -e '/if _POSIX_VERSION/s/if .*$/if 0/' \
+ librhash/util.h || die
+ fi
+
multilib_copy_sources
}