From 4606a1dce740efe467e6b9033b804294d376de8f Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 15 Dec 2015 21:37:31 +0100 Subject: [PATCH] using ucontext as a type name for ucontext_t is not portable It breaks on FreeBSD 10, at least. --- src/simix/UContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/simix/UContext.cpp b/src/simix/UContext.cpp index c453e73ffe..af244c1872 100644 --- a/src/simix/UContext.cpp +++ b/src/simix/UContext.cpp @@ -37,7 +37,7 @@ * variable is decomposed into a serie of integers and * each integer is passed as argument to makecontext. */ XBT_PRIVATE -void simgrid_makecontext(ucontext* ucp, void (*func)(int first, ...), void* arg) +void simgrid_makecontext(ucontext_t* ucp, void (*func)(int first, ...), void* arg) { int ctx_addr[CTX_ADDR_LEN]; memcpy(ctx_addr, &arg, sizeof(void*)); -- 2.20.1