diff --git a/sql/event_executor.cc b/sql/event_executor.cc index 43350dcded3..c0c3bca4375 100644 --- a/sql/event_executor.cc +++ b/sql/event_executor.cc @@ -110,6 +110,8 @@ evex_init_mutexes() event_executor_running_global_var= opt_event_executor; } +extern TABLE_FIELD_W_TYPE mysql_db_table_fields[]; +extern time_t mysql_db_table_last_check; /* Opens mysql.db and mysql.user and checks whether diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc index 724fd3b9b74..bebee7df8b2 100644 --- a/sql/sql_acl.cc +++ b/sql/sql_acl.cc @@ -32,10 +32,6 @@ #include "sp_head.h" #include "sp.h" -#ifndef NO_EMBEDDED_ACCESS_CHECKS - -#define FIRST_NON_YN_FIELD 26 - time_t mysql_db_table_last_check= 0L; TABLE_FIELD_W_TYPE mysql_db_table_fields[MYSQL_DB_FIELD_COUNT] = { @@ -152,6 +148,10 @@ TABLE_FIELD_W_TYPE mysql_db_table_fields[MYSQL_DB_FIELD_COUNT] = { }; +#ifndef NO_EMBEDDED_ACCESS_CHECKS + +#define FIRST_NON_YN_FIELD 26 + class acl_entry :public hash_filo_element { public: