mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-25 11:22:30 +01:00
the weak hack is needed if -lpthreads is separate library. so just differentiate with musl and non-musl with __GLIBC__ as an ugly hack.
12 lines
337 B
Diff
12 lines
337 B
Diff
--- libxml2-2.9.1/threads.c.orig
|
|
+++ libxml2-2.9.1/threads.c
|
|
@@ -47,7 +47,7 @@
|
|
#ifdef HAVE_PTHREAD_H
|
|
|
|
static int libxml_is_threaded = -1;
|
|
-#ifdef __GNUC__
|
|
+#if defined(__GNUC__) && defined(__GLIBC__)
|
|
#ifdef linux
|
|
#if (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) || (__GNUC__ > 3)
|
|
extern int pthread_once (pthread_once_t *__once_control,
|