diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-12-18 20:56:03 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-12-18 20:56:11 +0100 |
commit | 5bf0142be0b9ed582e54bdc661685fd95501471f (patch) | |
tree | 72804f63b23f3ff540c43212605cd003b4eb7118 /dev-libs/libuv | |
parent | sys-fs/xfsprogs: forcably disable zipped manpages (diff) | |
download | gentoo-5bf0142be0b9ed582e54bdc661685fd95501471f.tar.gz gentoo-5bf0142be0b9ed582e54bdc661685fd95501471f.tar.bz2 gentoo-5bf0142be0b9ed582e54bdc661685fd95501471f.zip |
dev-libs/libuv-1.40.0: fix compile for ppc-macos
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'dev-libs/libuv')
-rw-r--r-- | dev-libs/libuv/libuv-1.40.0.ebuild | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dev-libs/libuv/libuv-1.40.0.ebuild b/dev-libs/libuv/libuv-1.40.0.ebuild index 2bff012b3068..0e5e25477356 100644 --- a/dev-libs/libuv/libuv-1.40.0.ebuild +++ b/dev-libs/libuv/libuv-1.40.0.ebuild @@ -25,6 +25,22 @@ src_prepare() { echo "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [serial-tests])" \ > m4/libuv-extra-automake-flags.m4 || die + if [[ ${CHOST} == *-darwin* && ${CHOST##*darwin} -le 9 ]] ; then + sed -i -e '/!defined(__DragonFly__)/i!defined(__APPLE__) && \\' \ + src/unix/udp.c || die + sed -i -e '/err = pthread_setname_np/cerr = 0;' \ + src/unix/darwin-proctitle.c || die + sed -i -e '/int uv_if_indextoname/i\ + static size_t strnlen(char *x, size_t len) {\ + char *r = memchr(x, '"'"'\\n'"'"', len);\ + if (r == NULL)\ + return len;\ + else\ + return r - x;\ + }' \ + src/unix/getaddrinfo.c || die + fi + # upstream fails to ship a configure script eautoreconf } |