Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
using ucontext as a type name for ucontext_t is not portable
authorMartin Quinson <martin.quinson@loria.fr>
Tue, 15 Dec 2015 20:37:31 +0000 (21:37 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Tue, 15 Dec 2015 20:37:38 +0000 (21:37 +0100)
It breaks on FreeBSD 10, at least.

src/simix/UContext.cpp

index c453e73..af244c1 100644 (file)
@@ -37,7 +37,7 @@
  * variable is decomposed into a serie of integers and
  * each integer is passed as argument to makecontext. */
 XBT_PRIVATE
  * 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*));
 {
   int ctx_addr[CTX_ADDR_LEN];
   memcpy(ctx_addr, &arg, sizeof(void*));