aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2008-09-25 17:16:22 +0800
committergahr <gahr@FreeBSD.org>2008-09-25 17:16:22 +0800
commit14f37cd2ae3059d0b0c7cca6490b179d1323a86d (patch)
treead489d11bc1f7af6151bc2a18cfb12fa99f4d5e1 /databases
parent449053e0e31b397339376f908727b1f6883a5f9b (diff)
downloadfreebsd-ports-gnome-14f37cd2ae3059d0b0c7cca6490b179d1323a86d.tar.gz
freebsd-ports-gnome-14f37cd2ae3059d0b0c7cca6490b179d1323a86d.tar.zst
freebsd-ports-gnome-14f37cd2ae3059d0b0c7cca6490b179d1323a86d.zip
- Fix build on 64-bits platforms
Reported by: QA Tindie
Diffstat (limited to 'databases')
-rw-r--r--databases/mysql-gui-tools/files/patch-mysql-gui-common-source-linux_MDispatcher.cc13
1 files changed, 13 insertions, 0 deletions
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 <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)