diff --git a/core/src/cats/mysql.cc b/core/src/cats/mysql.cc index 4346b8d9a57..ce64049e66a 100644 --- a/core/src/cats/mysql.cc +++ b/core/src/cats/mysql.cc @@ -148,7 +148,11 @@ bool BareosDbMysql::OpenDatabase(JobControlRecord* jcr) { bool retval = false; int errstat; +#if LIBMYSQL_VERSION_ID > 80000 + bool reconnect = 1; +#else my_bool reconnect = 1; +#endif P(mutex); if (connected_) {