From: Augustin Degomme Date: Mon, 7 Oct 2013 15:50:36 +0000 (+0200) Subject: fix compilation issue with windows timers X-Git-Tag: v3_9_90~38^2~28 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/55291e0e8c895c29a0aa83bb4f6423632cbb299e fix compilation issue with windows timers --- diff --git a/src/xbt/xbt_os_time.c b/src/xbt/xbt_os_time.c index 4071c01397..f378ca1329 100644 --- a/src/xbt/xbt_os_time.c +++ b/src/xbt/xbt_os_time.c @@ -92,7 +92,7 @@ void xbt_os_sleep(double sec) struct s_xbt_os_timer { #ifdef HAVE_POSIX_GETTIME struct timespec start, stop, elapse; -#elif defined(HAVE_GETTIMEOFDAY) +#elif defined(HAVE_GETTIMEOFDAY) || defined(_XBT_WIN32) struct timeval start, stop, elapse; #else unsigned long int start, stop, elapse;