Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
model-checker : forget include ucontext.h for struct smx_ctx_sysv
authorMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 7 Oct 2012 15:21:22 +0000 (17:21 +0200)
committerMarion Guthmuller <marion.guthmuller@loria.fr>
Sun, 7 Oct 2012 15:21:22 +0000 (17:21 +0200)
src/simix/smx_context_sysv.c
src/simix/smx_private.h

index 758f7fe..b292db7 100644 (file)
 #include "gras_config.h"
 #include "context_sysv_config.h"        /* loads context system definitions */
 
-#ifdef _XBT_WIN32
-#  include <win32_ucontext.h>     /* context relative declarations */
-#else
-#  include <ucontext.h>           /* context relative declarations */
-#endif
-
 #ifdef HAVE_VALGRIND_VALGRIND_H
 #  include <valgrind/valgrind.h>
 #endif                          /* HAVE_VALGRIND_VALGRIND_H */
index 9a459cc..fcf7fd1 100644 (file)
 #include "smx_smurf_private.h"
 #include "smx_synchro_private.h"
 
+#ifdef _XBT_WIN32
+#  include <win32_ucontext.h>     /* context relative declarations */
+#else
+#  include <ucontext.h>           /* context relative declarations */
+#endif
+
 /* Define only for SimGrid benchmarking purposes */
 //#define TIME_BENCH_PER_SR /* this aims at measuring the time spent in each scheduling round per each thread. The code is thus run in sequential to bench separately each SSR */
 //#define TIME_BENCH_AMDAHL /* this aims at measuring the porting of time that could be parallelized at maximum (to get the optimal speedup by applying the amdahl law). */