summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Lashley <malc@gentoo.org>2006-08-15 21:34:13 +0000
committerMalcolm Lashley <malc@gentoo.org>2006-08-15 21:34:13 +0000
commit82590c17842ece2fa0e092606a2c4e63f5aac59e (patch)
tree0e62910d5879a18b148a18e93597f67d461f517f /dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch
parentmark ~ppc (Bug #143609) (diff)
downloadgentoo-2-82590c17842ece2fa0e092606a2c4e63f5aac59e.tar.gz
gentoo-2-82590c17842ece2fa0e092606a2c4e63f5aac59e.tar.bz2
gentoo-2-82590c17842ece2fa0e092606a2c4e63f5aac59e.zip
Little patch of pointer->int casting which makes gcc4.x barf on 64bit systems and voila ~amd64 - bug #141984
(Portage version: 2.1.1_pre5-r1)
Diffstat (limited to 'dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch')
-rw-r--r--dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch b/dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch
new file mode 100644
index 000000000000..c2c5db0c56f0
--- /dev/null
+++ b/dev-db/mysql-super-smack/files/mysql-super-smack-1.3.amd64.patch
@@ -0,0 +1,20 @@
+--- supesmack-1.3/src/query.cc.orig 2005-04-30 14:51:29.000000000 +0100
++++ supesmack-1.3/src/query.cc 2006-08-15 22:06:06.000000000 +0100
+@@ -197,7 +197,7 @@
+ {
+ string s((*i).first);
+ int str_len = (*i).first.length();
+- if((unsigned)p + str_len + 3 *sizeof(int) < (unsigned)p_end )
++ if((unsigned long)p + str_len + 3 *sizeof(int) < (unsigned long)p_end )
+ {
+ *p++ = (char) str_len;
+ const char* q_type_name = s.c_str();
+@@ -216,7 +216,7 @@
+ die(0, "report buffer overflow -- too many query types");
+ }
+
+- len = (unsigned)p - (unsigned)buf;
++ len = (unsigned long)p - (unsigned long)buf;
+ *(buf) = num_recs;
+
+ if(write(fd, buf, len) != len)