+/*#include <pthread.h>*/ /* I need pthread_join that is not yet available in xbt_thread.*/
+
+#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