diff --git a/nelns/admin_service/admin_service.cpp b/nelns/admin_service/admin_service.cpp index 9c11347fc..1788ff5ef 100644 --- a/nelns/admin_service/admin_service.cpp +++ b/nelns/admin_service/admin_service.cpp @@ -629,7 +629,11 @@ void sqlInit () nlerror ("mysql_init() failed"); } +#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);