summaryrefslogtreecommitdiff
path: root/dbug/my_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'dbug/my_main.c')
-rw-r--r--dbug/my_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dbug/my_main.c b/dbug/my_main.c
index 90af23b42b9..ed1c9329235 100644
--- a/dbug/my_main.c
+++ b/dbug/my_main.c
@@ -18,7 +18,9 @@ char *argv[];
#if defined(HAVE_PTHREAD_INIT) && defined(THREAD)
pthread_init(); /* Must be called before DBUG_ENTER */
#endif
+#ifdef THREAD
my_thread_global_init();
+#endif
{
DBUG_ENTER ("main");
DBUG_PROCESS (argv[0]);