diff --git a/indra/llui/ailist.h b/indra/llui/ailist.h index c528227ba..1511fef2e 100644 --- a/indra/llui/ailist.h +++ b/indra/llui/ailist.h @@ -253,7 +253,11 @@ class AIConstListIterator { typedef AIConstListIterator _Self; typedef std::list > _Container; typedef typename _Container::iterator _Iterator; +#if LL_LINUX && GCC_VERSION <= 40899 + typedef _Iterator _ConstIterator; +#else typedef typename _Container::const_iterator _ConstIterator; +#endif typedef AIListIterator iterator; _Container const* mContainer;