A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Reduce the amount of implicit include directories
[simgrid.git]
/
src
/
simix
/
smx_context_sysv.c
diff --git
a/src/simix/smx_context_sysv.c
b/src/simix/smx_context_sysv.c
index
7fc7f6f
..
0502499
100644
(file)
--- a/
src/simix/smx_context_sysv.c
+++ b/
src/simix/smx_context_sysv.c
@@
-1,6
+1,6
@@
/* context_sysv - context switching with ucontexts from System V */
/* context_sysv - context switching with ucontexts from System V */
-/* Copyright (c) 2009-201
4
. The SimGrid Team.
+/* Copyright (c) 2009-201
5
. The SimGrid Team.
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
* All rights reserved. */
/* This program is free software; you can redistribute it and/or modify it
@@
-10,8
+10,8
@@
#include "xbt/parmap.h"
#include "smx_private.h"
#include "xbt/parmap.h"
#include "smx_private.h"
-#include "internal_config.h"
-#include "context_sysv_config.h" /* loads context system definitions */
+#include "
src/
internal_config.h"
+#include "
src/
context_sysv_config.h" /* loads context system definitions */
#include "mc/mc.h"
#ifdef _XBT_WIN32
#include "mc/mc.h"
#ifdef _XBT_WIN32
@@
-152,9
+152,12
@@
smx_ctx_sysv_create_context(xbt_main_func_t code, int argc, char **argv,
sysv_maestro_context = context;
}
sysv_maestro_context = context;
}
- if(MC_is_active() && code)
- MC_new_stack_area(context->stack, ((smx_context_t)context)->process->name,
+#ifdef HAVE_MC
+ if (MC_is_active() && code) {
+ MC_register_stack_area(context->stack, ((smx_context_t)context)->process,
&(context->uc), smx_context_usable_stack_size);
&(context->uc), smx_context_usable_stack_size);
+ }
+#endif
return (smx_context_t) context;
}
return (smx_context_t) context;
}