Closed dankamongmen closed 3 years ago
PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
isn't supported on musl, alas.
It looks like musl does have PTHREAD_MUTEX_RECURSIVE
(as an enum
), suitable for use with a pthread_mutexattr_t
, and that Glibc also provides this identifier. So let's get rid of PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
and do it the long way.
recursive_lock_init()
has been added, and does this portably (i think).
tested; we now build on alpine
Trying to build on Alpine Linux, we fail due to the following missing header:
This is a Glibc-specific header. Try and get rid of this dep -- is it truly necessary?