to NULL anyway). The previous macro prevented the compilation of some
code.
#define SEED 221238
#define sleep(x) smpi_sleep(x)
#define SEED 221238
#define sleep(x) smpi_sleep(x)
-#define gettimeofday(x, y) smpi_gettimeofday(x)
#include <smpi/smpi.h>
#include <xbt/sysdep.h>
#include <smpi/smpi.h>
#include <xbt/sysdep.h>
#include <xbt/asserts.h>
#include <simgrid/modelchecker.h>
#include <xbt/asserts.h>
#include <simgrid/modelchecker.h>
+#define gettimeofday(x, y) smpi_gettimeofday(x, NULL)
+
#ifdef HAVE_MC
#undef assert
#define assert(x) MC_assert(x)
#ifdef HAVE_MC
#undef assert
#define assert(x) MC_assert(x)
XBT_PUBLIC(double) smpi_get_host_consumed_energy(void);
XBT_PUBLIC(unsigned int) smpi_sleep(unsigned int secs);
XBT_PUBLIC(double) smpi_get_host_consumed_energy(void);
XBT_PUBLIC(unsigned int) smpi_sleep(unsigned int secs);
-XBT_PUBLIC(int) smpi_gettimeofday(struct timeval *tv);
+XBT_PUBLIC(int) smpi_gettimeofday(struct timeval *tv, void* tz);
XBT_PUBLIC(unsigned long long) smpi_rastro_resolution (void);
XBT_PUBLIC(unsigned long long) smpi_rastro_timestamp (void);
XBT_PUBLIC(void) smpi_sample_1(int global, const char *file, int line,
XBT_PUBLIC(unsigned long long) smpi_rastro_resolution (void);
XBT_PUBLIC(unsigned long long) smpi_rastro_timestamp (void);
XBT_PUBLIC(void) smpi_sample_1(int global, const char *file, int line,
-int smpi_gettimeofday(struct timeval *tv)
+int smpi_gettimeofday(struct timeval *tv, void* tz)
{
double now;
smpi_bench_end();
{
double now;
smpi_bench_end();