1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-8241: Debug build on Windows is broken: error LNK2019: unresolved external symbol pthread_detach referenced in function ma_checkpoint_init

pthread_detach() replaced with pthread_detach_this_thread()

pthread_detach_this_thread() definition fixed
This commit is contained in:
Oleksandr Byelkin
2015-05-28 07:59:57 +02:00
parent c1c22c043b
commit 0f01bf2676
2 changed files with 3 additions and 2 deletions

View File

@@ -182,7 +182,7 @@ int pthread_cancel(pthread_t thread);
#define pthread_key(T,V) pthread_key_t V
#define my_pthread_getspecific_ptr(T,V) my_pthread_getspecific(T,(V))
#define my_pthread_setspecific_ptr(T,V) pthread_setspecific(T,(void*) (V))
#define pthread_detach_this_thread()
#define pthread_detach_this_thread() { pthread_t tmp=pthread_self() ; pthread_detach(tmp); }
#define pthread_handler_t EXTERNC void *
typedef void *(* pthread_handler)(void *);