diff --git a/js/src/util/NativeStack.cpp b/js/src/util/NativeStack.cpp index b988fae..35c51ad 100644 --- a/js/src/util/NativeStack.cpp +++ b/js/src/util/NativeStack.cpp @@ -13,7 +13,7 @@ # if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__) # include # endif -# if defined(SOLARIS) || defined(AIX) +# if defined(SOLARIS) || defined(__sun) || defined(AIX) # include # endif # if defined(ANDROID) && !defined(__aarch64__) @@ -40,7 +40,7 @@ void* js::GetNativeStackBaseImpl() { return static_cast(pTib->StackBase); } -#elif defined(SOLARIS) +#elif defined(SOLARIS) || defined(__sun) JS_STATIC_ASSERT(JS_STACK_GROWTH_DIRECTION < 0);