diff --git a/sql/rpl_rli.h b/sql/rpl_rli.h
index 8e5e667e6d4beb1ddeee0ef0529283a31e1a2f0a..c19b84ced49cd53c0ee51f665712a650963b524c 100644
--- a/sql/rpl_rli.h
+++ b/sql/rpl_rli.h
@@ -122,7 +122,7 @@ class Relay_log_info : public Slave_reporting_capability
   pthread_cond_t start_cond, stop_cond, data_cond;
 
   /* parent Master_info structure */
-  class Master_info *mi;
+  Master_info *mi;
 
   /*
     Needed to deal properly with cur_log getting closed and re-opened with