From 14f37cd2ae3059d0b0c7cca6490b179d1323a86d Mon Sep 17 00:00:00 2001 From: gahr Date: Thu, 25 Sep 2008 09:16:22 +0000 Subject: - Fix build on 64-bits platforms Reported by: QA Tindie --- .../patch-mysql-gui-common-source-linux_MDispatcher.cc | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 databases/mysql-gui-tools/files/patch-mysql-gui-common-source-linux_MDispatcher.cc (limited to 'databases') diff --git a/databases/mysql-gui-tools/files/patch-mysql-gui-common-source-linux_MDispatcher.cc b/databases/mysql-gui-tools/files/patch-mysql-gui-common-source-linux_MDispatcher.cc new file mode 100644 index 000000000000..bf4b37a269b8 --- /dev/null +++ b/databases/mysql-gui-tools/files/patch-mysql-gui-common-source-linux_MDispatcher.cc @@ -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 + #include + +-#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) -- cgit