https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90060
--- Comment #1 from ibuclaw at gcc dot gnu.org --- Comment on attachment 46150 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=46150 Use __makecontext_v2 on Solaris/SPARC >+ version (makecontextv2) >+ pragma(mangle, "__makecontext_v2") void makecontext(ucontext_t*, void >function(), int, ...); >+ else >+ void makecontext(ucontext_t*, void function(), int, ...); I would use alias here instead of pragma(mangle). void __makecontext_v2(ucontext_t*, void function(), int, ...); alias makecontext = __makecontext_v2; Both do the same thing however...