From 0b9a5b09e0378d621cfe7fb74de47d51647da197 Mon Sep 17 00:00:00 2001 From: INADA Naoki Date: Sat, 11 Oct 2014 22:37:27 +0900 Subject: [PATCH] Fix build error when using libmariadbclient. Fixes farcepest/MySQLdb1#80 --- _mysql.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/_mysql.c b/_mysql.c index c7061029..abe65c8f 100644 --- a/_mysql.c +++ b/_mysql.c @@ -26,6 +26,10 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +#include "my_config.h" +#include "mysql.h" +#include "mysqld_error.h" + #include "Python.h" #if PY_MAJOR_VERSION >= 3 #define IS_PY3K @@ -37,9 +41,6 @@ PERFORMANCE OF THIS SOFTWARE. #include "bytesobject.h" #include "structmember.h" -#include "my_config.h" -#include "mysql.h" -#include "mysqld_error.h" #include "errmsg.h" #define MyAlloc(s,t) (s *) t.tp_alloc(&t,0)