summaryrefslogtreecommitdiffstats
path: root/development/MySQL-python/patches/MySQL-python-1.2.4-include-my_config-first.patch
diff options
context:
space:
mode:
author Matteo Bernardini2014-11-07 21:30:50 +0100
committer Willy Sudiarto Raharjo2015-03-14 10:55:50 +0100
commit2481137949e81ed12a6b4359a6b57550ed73b049 (patch)
tree7feb5bbbf4028239dca658e8177fe195650adea8 /development/MySQL-python/patches/MySQL-python-1.2.4-include-my_config-first.patch
parentcbc962b13533837c8976298cf91b1b9a102de41e (diff)
downloadold.slackbuilds-2481137949e81ed12a6b4359a6b57550ed73b049.tar.gz
development/MySQL-python: Patch to build with newer mysqls.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'development/MySQL-python/patches/MySQL-python-1.2.4-include-my_config-first.patch')
-rw-r--r--development/MySQL-python/patches/MySQL-python-1.2.4-include-my_config-first.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/development/MySQL-python/patches/MySQL-python-1.2.4-include-my_config-first.patch b/development/MySQL-python/patches/MySQL-python-1.2.4-include-my_config-first.patch
new file mode 100644
index 0000000000..81d2041f47
--- /dev/null
+++ b/development/MySQL-python/patches/MySQL-python-1.2.4-include-my_config-first.patch
@@ -0,0 +1,33 @@
+diff -Naur MySQL-python-1.2.4.orig/_mysql.c MySQL-python-1.2.4/_mysql.c
+--- MySQL-python-1.2.4.orig/_mysql.c 2013-01-01 17:18:48.000000000 +0100
++++ MySQL-python-1.2.4/_mysql.c 2014-11-07 20:25:20.483927425 +0100
+@@ -26,6 +26,14 @@
+ PERFORMANCE OF THIS SOFTWARE.
+ */
+
++#if defined(MS_WINDOWS)
++#include <config-win.h>
++#else
++#include "my_config.h"
++#endif
++#include "mysql.h"
++#include "mysqld_error.h"
++#include "errmsg.h"
+ #include "Python.h"
+ #if PY_MAJOR_VERSION >= 3
+ #define IS_PY3K
+@@ -38,14 +46,6 @@
+ #endif
+ #include "pymemcompat.h"
+ #include "structmember.h"
+-#if defined(MS_WINDOWS)
+-#include <config-win.h>
+-#else
+-#include "my_config.h"
+-#endif
+-#include "mysql.h"
+-#include "mysqld_error.h"
+-#include "errmsg.h"
+
+ #if PY_VERSION_HEX < 0x02020000
+ # define MyTuple_Resize(t,n,d) _PyTuple_Resize(t, n, d)