1 diff --git a/odb/mysql/mysql-types.hxx b/odb/mysql/mysql-types.hxx
2 index 5396791..32a2a03 100644
3 --- a/odb/mysql/mysql-types.hxx
4 +++ b/odb/mysql/mysql-types.hxx
7 #include <odb/mysql/details/config.hxx>
9 +#include <odb/mysql/version.hxx>
13 +#if !defined(LIBODB_MYSQL_MARIADB) && MYSQL_VERSION_ID >= 80011
16 typedef struct st_mysql_bind MYSQL_BIND;
19 -#ifdef LIBODB_MYSQL_INCLUDE_SHORT
20 -# include <mysql_time.h>
21 +#ifdef LIBODB_MYSQL_MARIADB
22 +# include <mysql/mysql.h>
24 -# include <mysql/mysql_time.h>
25 +# ifdef LIBODB_MYSQL_INCLUDE_SHORT
26 +# include <mysql_time.h>
28 +# include <mysql/mysql_time.h>
32 #endif // ODB_MYSQL_MYSQL_TYPES_HXX