MINGW-packages/mingw-w64-db/0001-db-tls-m4-fix-pthread.patch
Biswapriyo Nath d5f2369b16 db: Fix checking for thread local storage with clang
This fixes the pthread_getspecific and pthread_setspecific calls in tls.m4.
Also append pthread library in global LDFLAGS variable.
2023-08-13 20:46:57 +05:30

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