- Fix build on 64-bits platforms
Reported by: QA Tindie
This commit is contained in:
parent
2812972801
commit
cfc77a9074
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220751
1 changed files with 13 additions and 0 deletions
|
@ -0,0 +1,13 @@
|
|||
--- mysql-gui-common/source/linux/MDispatcher.cc.orig 2008-09-25 08:24:31.000000000 +0000
|
||||
+++ mysql-gui-common/source/linux/MDispatcher.cc 2008-09-25 08:25:09.000000000 +0000
|
||||
@@ -21,8 +21,8 @@
|
||||
#include <unistd.h>
|
||||
#include <mysql.h>
|
||||
|
||||
-#define MX_LOCK(mx) { if (0) g_message("[%i]:%s: LOCK %s", (int)pthread_self(), __FUNCTION__, #mx); pthread_mutex_lock(mx); }
|
||||
-#define MX_UNLOCK(mx) { if (0) g_message("[%i]:%s: UNLOCK %s", (int)pthread_self(), __FUNCTION__, #mx); pthread_mutex_unlock(mx); }
|
||||
+#define MX_LOCK(mx) { if (0) g_message("[%lu]:%s: LOCK %s", (unsigned long)pthread_self(), __FUNCTION__, #mx); pthread_mutex_lock(mx); }
|
||||
+#define MX_UNLOCK(mx) { if (0) g_message("[%lu]:%s: UNLOCK %s", (unsigned long)pthread_self(), __FUNCTION__, #mx); pthread_mutex_unlock(mx); }
|
||||
|
||||
|
||||
void *MDispatcher::thread_func(Fetcher *self)
|
Loading…
Reference in a new issue