--- a/src/lwp_ucontext.c +++ a/src/lwp_ucontext.c @@ -14,6 +14,10 @@ Coda are listed in the file CREDITS. Additional copyrights #*/ +/* avoid breaking longjmp stack switching */ +#undef _FORTIFY_SOURCE +#define _FORTIFY_SOURCE 0 + #include #include #include @@ -21,9 +25,6 @@ Coda are listed in the file CREDITS. #include #include -/* avoid breaking longjmp stack switching */ -#undef _FORTIFY_SOURCE -#define _FORTIFY_SOURCE 0 #include "lwp_ucontext.h" /* Some architectures have a stack that grows up instead of down */