Skip to content

Commit acf2c8c

Browse files
committed
Merge pull request #7 from PyMySQL/fix-libmariadb
Fix build error when using libmariadbclient.
2 parents abde393 + 0b9a5b0 commit acf2c8c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Diff for: _mysql.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2626
PERFORMANCE OF THIS SOFTWARE.
2727
*/
2828

29+
#include "my_config.h"
30+
#include "mysql.h"
31+
#include "mysqld_error.h"
32+
2933
#include "Python.h"
3034
#if PY_MAJOR_VERSION >= 3
3135
#define IS_PY3K
@@ -37,9 +41,6 @@ PERFORMANCE OF THIS SOFTWARE.
3741

3842
#include "bytesobject.h"
3943
#include "structmember.h"
40-
#include "my_config.h"
41-
#include "mysql.h"
42-
#include "mysqld_error.h"
4344
#include "errmsg.h"
4445

4546
#define MyAlloc(s,t) (s *) t.tp_alloc(&t,0)

0 commit comments

Comments
 (0)