From 915c9f4dfcdc1bf0d33005f9f71a94896bae6049 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 27 Jan 2007 20:16:15 +0100 Subject: [PATCH] BUG#25895 compiling the server with embedded fails on several 64-bit platforms temporary fix libmysqld/lib_sql.cc: BUG#25895 compiling the server with embedded fails on several 64-bit platforms do not try to cast THD* to pthread_t, this operation is not possible --- libmysqld/lib_sql.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 6d2cc901eb1..0293f6bf33b 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -598,7 +598,7 @@ void *create_embedded_thd(int client_flag) thd->set_time(); thd->init_for_queries(); thd->client_capabilities= client_flag; - thd->real_id= (pthread_t) thd; + thd->real_id= pthread_self(); thd->db= NULL; thd->db_length= 0;