dev-libs/npth: Sync with Gentoo

It's from Gentoo commit 35606cd7f9fb29a4c83847cfc00ef364f85287a8.
This commit is contained in:
Flatcar Buildbot 2024-03-04 07:56:58 +00:00 committed by Krzesimir Nowak
parent ee56dcc4da
commit ea958f3929
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,16 @@
https://bugs.gentoo.org/925443
https://dev.gnupg.org/T5664
--- a/configure.ac
+++ b/configure.ac
@@ -381,7 +381,10 @@ fi
AC_SUBST(INSERT_NO_RWLOCK)
case "${host}" in
- *-*-linux*|*-*-gnu*)
+ *-*-linux-musl*)
+ INSERT_EXPOSE_RWLOCK_API="1"
+ ;;
+ *-*-linux-gnu*|*-*-gnu*)
INSERT_EXPOSE_RWLOCK_API="defined(__USE_UNIX98) || defined(__USE_XOPEN2K)"
;;
*)

View File

@ -15,6 +15,10 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~
IUSE="test" IUSE="test"
RESTRICT="!test? ( test )" RESTRICT="!test? ( test )"
PATCHES=(
"${FILESDIR}"/${P}-musl.patch
)
src_prepare() { src_prepare() {
default default
eautoreconf eautoreconf