--- sql.c.orig 2019-01-13 16:47:03.571886931 +0300 +++ sql.c 2019-01-13 16:46:25.587117868 +0300 @@ -34,6 +34,10 @@ #include "common.h" #include "spine.h" +#if !defined(my_bool) && MYSQL_VERSION_ID >= 80001 && MYSQL_VERSION_ID < 100100 +#define my_bool bool +#endif + /*! \fn int db_insert(MYSQL *mysql, int type, const char *query) * \brief inserts a row or rows in a database table. * \param mysql the database connection object