diff --git a/mozilla/nsprpub/pr/include/pratom.h b/mozilla/nsprpub/pr/include/pratom.h index 4cdf6fbb5f1..35d6d163e60 100644 --- a/mozilla/nsprpub/pr/include/pratom.h +++ b/mozilla/nsprpub/pr/include/pratom.h @@ -87,15 +87,6 @@ struct PRStackElemStr { typedef struct PRStackStr PRStack; -struct PRStackStr { - PRStackElem prstk_head; /* head MUST be at offset 0; assembly - language code relies on this - */ - PRLock *prstk_lock; - char *prstk_name; -}; - - /* ** FUNCTION: PR_CreateStack ** DESCRIPTION: diff --git a/mozilla/nsprpub/pr/include/private/primpl.h b/mozilla/nsprpub/pr/include/private/primpl.h index 04e08b860f3..e61f50d0d60 100644 --- a/mozilla/nsprpub/pr/include/private/primpl.h +++ b/mozilla/nsprpub/pr/include/private/primpl.h @@ -1341,6 +1341,20 @@ struct PRSem { #endif }; +/*************************************************************************/ + +struct PRStackStr { + /* head MUST be at offset 0; assembly language code relies on this */ +#if defined(AIX) || defined(OSF1) + volatile PRStackElem prstk_head; +#else + PRStackElem prstk_head; +#endif + + PRLock *prstk_lock; + char *prstk_name; +}; + /************************************************************************/ /* XXX this needs to be exported (sigh) */