summaryrefslogtreecommitdiff
path: root/include/my_pthread.h
diff options
context:
space:
mode:
authormonty@donna.mysql.com <>2000-09-20 19:37:07 +0300
committermonty@donna.mysql.com <>2000-09-20 19:37:07 +0300
commit830d30896066b325d1ee0769ca116efdaef602f2 (patch)
treedf5d441bed10a34a5a2157ad96f60a04046960b8 /include/my_pthread.h
parent2780278f35ae9ec1a73fb4d5ecedecf9f44d0c8b (diff)
downloadmariadb-git-830d30896066b325d1ee0769ca116efdaef602f2.tar.gz
Fix for SAFE_MUTEX on windows
Diffstat (limited to 'include/my_pthread.h')
-rw-r--r--include/my_pthread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_pthread.h b/include/my_pthread.h
index d5f3fa735b2..71ad5e42bf2 100644
--- a/include/my_pthread.h
+++ b/include/my_pthread.h
@@ -85,6 +85,7 @@ void pthread_exit(unsigned A); /* was #define pthread_exit(A) ExitThread(A)*/
#define HAVE_PTHREAD_ATTR_SETSTACKSIZE
#ifdef USE_TLS /* For LIBMYSQL.DLL */
+#undef SAFE_MUTEX /* This will cause conflicts */
#define pthread_key(T,V) DWORD V
#define pthread_key_create(A,B) ((*A=TlsAlloc())==0xFFFFFFFF)
#define pthread_getspecific(A) (TlsGetValue(A))