diff --git a/content/html/style/src/nsComputedDOMStyle.cpp b/content/html/style/src/nsComputedDOMStyle.cpp
index 717138fc7b9f..d6ec7a3af5fb 100644
--- a/content/html/style/src/nsComputedDOMStyle.cpp
+++ b/content/html/style/src/nsComputedDOMStyle.cpp
@@ -3432,7 +3432,13 @@ nsComputedDOMStyle::GetQueryablePropertyMap(PRUint32* aLength)
* Properties commented out with // are not yet implemented *
* Properties commented out with //// are shorthands and not queryable *
\* ******************************************************************* */
- static const ComputedStyleMapEntry map[] = {
+ static
+#ifndef XP_MACOSX
+ // XXX If this actually fixes the bustage, replace this with an
+ // autoconf test.
+ const
+#endif
+ ComputedStyleMapEntry map[] = {
/* ****************************** *\
* Implementations of CSS2 styles *
\* ****************************** */
diff --git a/layout/style/nsComputedDOMStyle.cpp b/layout/style/nsComputedDOMStyle.cpp
index 717138fc7b9f..d6ec7a3af5fb 100644
--- a/layout/style/nsComputedDOMStyle.cpp
+++ b/layout/style/nsComputedDOMStyle.cpp
@@ -3432,7 +3432,13 @@ nsComputedDOMStyle::GetQueryablePropertyMap(PRUint32* aLength)
* Properties commented out with // are not yet implemented *
* Properties commented out with //// are shorthands and not queryable *
\* ******************************************************************* */
- static const ComputedStyleMapEntry map[] = {
+ static
+#ifndef XP_MACOSX
+ // XXX If this actually fixes the bustage, replace this with an
+ // autoconf test.
+ const
+#endif
+ ComputedStyleMapEntry map[] = {
/* ****************************** *\
* Implementations of CSS2 styles *
\* ****************************** */