libunistring: fix compilation error with MUSL
authorChristian Marangi <[email protected]>
Tue, 25 Nov 2025 12:39:59 +0000 (13:39 +0100)
committerChristian Marangi <[email protected]>
Tue, 25 Nov 2025 12:41:11 +0000 (13:41 +0100)
commit41541bf30e00efdb70c6229bf886cb5b454cb500
treee95cbdc6de0997ca086bed80685ea9c299b4989a
parentb0e9371cb15216c64d10a0526a078bdb278156df
libunistring: fix compilation error with MUSL

MUSL doesn't provide PTHREAD_RWLOCK_PREFER_WRITER_NONRECURSIVE_NP as
it's only glibc and as the MACRO say, it's NP (not portable).

Add patch to check for this and disable overwriting the function
accordingly.

Fixes: 9bdf72347640 ("libunistring: update to 1.4.1")
Signed-off-by: Christian Marangi <[email protected]>
package/libs/libunistring/patches/100-tests-pthread-rwlock-better-support-MUSL.patch [new file with mode: 0644]