diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp
index 6f7c60ba95424f70db1311829988fa3256c38ba2..7f33a8329cf191d8b82fdd6f7720ec3aaf039e0c 100644
--- a/indra/newview/llchathistory.cpp
+++ b/indra/newview/llchathistory.cpp
@@ -45,6 +45,7 @@
 #include "llmutelist.h"
 #include "llstylemap.h"
 #include "lllayoutstack.h"
+#include "llagent.h"
 
 #include "llsidetray.h"//for blocked objects panel