mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-21 22:50:08 +03:00
fix: pthread weak references in globals.c
Linking executables will fail on systems with glibc < 2.34 without declaring these symbols as weak references. In commit c19771c1f13de9196f98260d142d8c8672eb5733 these references were moved to globals.c from threads.c, but the `#pragma weak` declarations were lost in the process. Also removing unneeded weak declarations from threads.c.
This commit is contained in:
parent
f92ea2ccec
commit
1ac88300c1
@ -118,6 +118,11 @@ static XML_THREAD_LOCAL xmlGlobalState globalState;
|
||||
defined(__GLIBC__) && \
|
||||
__GLIBC__ * 100 + __GLIBC_MINOR__ < 234
|
||||
|
||||
#pragma weak pthread_getspecific
|
||||
#pragma weak pthread_setspecific
|
||||
#pragma weak pthread_key_create
|
||||
#pragma weak pthread_key_delete
|
||||
|
||||
#define XML_PTHREAD_WEAK
|
||||
|
||||
static int libxml_is_threaded = -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user