This fixes the pthread_getspecific and pthread_setspecific calls in tls.m4. Also append pthread library in global LDFLAGS variable.
16 lines
473 B
Diff
16 lines
473 B
Diff
--- a/dist/aclocal/tls.m4
|
|
+++ b/dist/aclocal/tls.m4
|
|
@@ -42,10 +42,10 @@
|
|
pthread_key_create(&key, NULL);
|
|
}
|
|
static void *get_tls() {
|
|
- return (void *)pthread_getspecific(&key);
|
|
+ return (void *)pthread_getspecific(key);
|
|
}
|
|
static void set_tls(void *p) {
|
|
- pthread_setspecific(&key, p);
|
|
+ pthread_setspecific(key, p);
|
|
}], [],
|
|
[ac_cv_tls=pthread])
|
|
fi
|