summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-05-28 07:59:57 +0200
committerOleksandr Byelkin <sanja@mariadb.com>2015-05-29 23:07:49 +0200
commit0f01bf267680244ec488adaf65a42838756ed48e (patch)
treec9e800dd95d2240f2d1d252ad150202b1327d395 /include/my_pthread.h
parentc1c22c043b5981aa767120a67b754c2ba4fbfe1f (diff)
downloadmariadb-git-0f01bf267680244ec488adaf65a42838756ed48e.tar.gz
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
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index 7770c28f45f..104e91715e7 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -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 *);