diff options
author | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-09-28 06:09:35 +0800 |
---|---|---|
committer | kwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059> | 2009-09-28 06:09:35 +0800 |
commit | bc022871cb6493f735ab574abb04ac5b742d11b7 (patch) | |
tree | 1b17dc22b4865e6edf7f9ca7036e54aa235487a8 /databases/mysql-gui-tools/files/patch-common-source-linux_MDispatcher.cc | |
parent | ea2f55347817345b3e78f6333dc8a5d3a8d147a3 (diff) | |
download | marcuscom-ports-bc022871cb6493f735ab574abb04ac5b742d11b7.tar marcuscom-ports-bc022871cb6493f735ab574abb04ac5b742d11b7.tar.gz marcuscom-ports-bc022871cb6493f735ab574abb04ac5b742d11b7.tar.bz2 marcuscom-ports-bc022871cb6493f735ab574abb04ac5b742d11b7.tar.lz marcuscom-ports-bc022871cb6493f735ab574abb04ac5b742d11b7.tar.xz marcuscom-ports-bc022871cb6493f735ab574abb04ac5b742d11b7.tar.zst marcuscom-ports-bc022871cb6493f735ab574abb04ac5b742d11b7.zip |
Fix build.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13056 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'databases/mysql-gui-tools/files/patch-common-source-linux_MDispatcher.cc')
-rw-r--r-- | databases/mysql-gui-tools/files/patch-common-source-linux_MDispatcher.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/databases/mysql-gui-tools/files/patch-common-source-linux_MDispatcher.cc b/databases/mysql-gui-tools/files/patch-common-source-linux_MDispatcher.cc new file mode 100644 index 000000000..00fc479df --- /dev/null +++ b/databases/mysql-gui-tools/files/patch-common-source-linux_MDispatcher.cc @@ -0,0 +1,13 @@ +--- common/source/linux/MDispatcher.cc.orig 2008-09-25 08:24:31.000000000 +0000 ++++ 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)
|