1 diff --git a/js/src/util/NativeStack.cpp b/js/src/util/NativeStack.cpp
2 index b988fae..35c51ad 100644
3 --- a/js/src/util/NativeStack.cpp
4 +++ b/js/src/util/NativeStack.cpp
6 # if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
7 # include <pthread_np.h>
9 -# if defined(SOLARIS) || defined(AIX)
10 +# if defined(SOLARIS) || defined(__sun) || defined(AIX)
11 # include <ucontext.h>
13 # if defined(ANDROID) && !defined(__aarch64__)
14 @@ -40,7 +40,7 @@ void* js::GetNativeStackBaseImpl() {
15 return static_cast<void*>(pTib->StackBase);
18 -#elif defined(SOLARIS)
19 +#elif defined(SOLARIS) || defined(__sun)
21 JS_STATIC_ASSERT(JS_STACK_GROWTH_DIRECTION < 0);