diff --git a/xpcom/libxpt/xptcall/src/md/unix/xptcstubs_sparc_solaris.cpp b/xpcom/libxpt/xptcall/src/md/unix/xptcstubs_sparc_solaris.cpp index c4a0c378340..0d5946bd768 100644 --- a/xpcom/libxpt/xptcall/src/md/unix/xptcstubs_sparc_solaris.cpp +++ b/xpcom/libxpt/xptcall/src/md/unix/xptcstubs_sparc_solaris.cpp @@ -22,7 +22,7 @@ #ifdef sparc -static nsresult +extern "C" nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, uint32* args) { #define PARAM_BUFFER_COUNT 16 diff --git a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_sparc_solaris.cpp b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_sparc_solaris.cpp index c4a0c378340..0d5946bd768 100644 --- a/xpcom/reflect/xptcall/src/md/unix/xptcstubs_sparc_solaris.cpp +++ b/xpcom/reflect/xptcall/src/md/unix/xptcstubs_sparc_solaris.cpp @@ -22,7 +22,7 @@ #ifdef sparc -static nsresult +extern "C" nsresult PrepareAndDispatch(nsXPTCStubBase* self, uint32 methodIndex, uint32* args) { #define PARAM_BUFFER_COUNT 16