nspr: try to unbreak musl build with hints from Alpine.

This commit is contained in:
Juan RP 2015-05-08 08:24:54 +02:00
parent 756aae84b4
commit f3367212ef
2 changed files with 17 additions and 3 deletions
srcpkgs/nspr

View file

@ -0,0 +1,14 @@
--- nspr/pr/src/misc/prnetdb.c.orig
+++ nspr/pr/src/misc/prnetdb.c
@@ -61,10 +61,7 @@
#define _PR_HAVE_GETPROTO_R_POINTER
#endif
-#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT)) \
- || (defined(LINUX) && defined(_REENTRANT) \
- && !(defined(__GLIBC__) && __GLIBC__ >= 2) \
- && !defined(ANDROID))
+#if defined(SOLARIS) || (defined(BSDI) && defined(_REENTRANT))
#define _PR_HAVE_GETPROTO_R
#define _PR_HAVE_GETPROTO_R_POINTER
#endif

View file

@ -1,7 +1,7 @@
# Template file for 'nspr'
pkgname=nspr
version=4.10.8
revision=1
revision=2
build_style=gnu-configure
build_wrksrc="nspr"
makedepends="zlib-devel"
@ -20,10 +20,10 @@ do_configure() {
_args+=" --enable-64bit"
fi
unset CFLAGS
CFLAGS+=" -D_PR_POLL_AVAILABLE -D_PR_HAVE_OFF64_T -D_PR_INET6 -D_PR_HAVE_INET_NTOP -D_PR_HAVE_GETHOSTBYNAME2 -D_PR_HAVE_GETADDRINFO -D_PR_INET6_PROBE"
./configure --prefix=/usr --libdir=/usr/lib \
--includedir=/usr/include/nspr --enable-optimize \
--enable-debug --with-pthreads ${_args}
--enable-debug --enable-ipv6 ${_args}
}
post_install() {