diff options
| -rw-r--r-- | indra/llcommon/llthreadlocalstorage.h | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/indra/llcommon/llthreadlocalstorage.h b/indra/llcommon/llthreadlocalstorage.h index fd44589299..4873b2740d 100644 --- a/indra/llcommon/llthreadlocalstorage.h +++ b/indra/llcommon/llthreadlocalstorage.h @@ -177,12 +177,14 @@ public:  			llwarns << "Trying to access deleted singleton " << typeid(DERIVED_TYPE).name() << " creating new instance" << llendl;  		} +#if LL_DARWIN +        createTLSInstance(); +#endif  		if (!getIfExists())  		{  			setInitState(CONSTRUCTING);              DERIVED_TYPE* instancep = new DERIVED_TYPE();  #if LL_DARWIN -            createTLSInstance();              S32 result = pthread_setspecific(sInstanceKey, (void*)instancep);              if (result != 0)              { | 
