diff --git a/nelns/login_service/mysql_helper.cpp b/nelns/login_service/mysql_helper.cpp index 2979ca6b2..f91d18a62 100644 --- a/nelns/login_service/mysql_helper.cpp +++ b/nelns/login_service/mysql_helper.cpp @@ -131,7 +131,11 @@ static void cbDatabaseVar(CConfigFile::CVar &var) return; } +#if LIBMYSQL_VERSION_ID < 80000 my_bool opt = true; +#else + bool opt = true; +#endif if (mysql_options (db, MYSQL_OPT_RECONNECT, &opt)) { mysql_close(db);