X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/4b754cbe4ec669846baeee13c6362184019c5bbd..f2485307bc9f202b0b96e735969b03ea7cf8a548:/src/xbt/context.c diff --git a/src/xbt/context.c b/src/xbt/context.c index 4f6907be5e..deb917cf02 100644 --- a/src/xbt/context.c +++ b/src/xbt/context.c @@ -15,6 +15,15 @@ #include "xbt/dynar.h" #include "xbt/xbt_thread.h" +#ifdef CONTEXT_THREADS + /* This file (context.c) is only loaded in libsimgrid, not libgras. + * xbt_thread is only loaded in libgras explicitly, and we need it in + * libsimgrid, but only when it is the backend used to implement the + * xbt_context. So, do load it on need. + */ +#include "xbt/xbt_thread.c" +#endif + XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_ctx, xbt, "Context"); #define VOIRP(expr) DEBUG1(" {" #expr " = %p }", expr)