Another way of doing it is stubbing the *context functions like so: #ifndef HAVE_U_CONTEXT typedef struct ucontext { } ucontext_t; int getcontext (ucontext_t *ucp) { return -1; } int setcontext (const ucontext_t *ucp) { return -1; } int swapcontext (ucontext_t *oucp, ucontext_t *ucp) { return -1; } void makecontext(ucontext_t *ucp, void *func(), int argc, ...) { return -1; } #endif -- Dimi.