Description: Add support for MySQL 8.0 The my_bool type is removed in 8.0, and should be replaced with int or bool Ref https://dev.mysql.com/doc/refman/8.0/en/c-api-data-structures.html Author: Lars Tangvald Bug: https://code.mythtv.org/trac/ticket/13304 Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/1783502 Last-Update: 2018-07-25 --- mythtv-29.1+fixes.20180414.329c235.orig/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp +++ mythtv-29.1+fixes.20180414.329c235/mythplugins/mythzoneminder/mythzmserver/zmserver.cpp @@ -183,7 +183,11 @@ void connectToDatabase(void) exit(mysql_errno(&g_dbConn)); } +#if MYSQL_VERSION_ID >= 80000 + int reconnect = 1; +#else my_bool reconnect = 1; +#endif mysql_options(&g_dbConn, MYSQL_OPT_RECONNECT, &reconnect); if (!mysql_real_connect(&g_dbConn, g_server.c_str(), g_user.c_str(),