From 24533f39f9c337e5bd037071f289069328e27f42 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 13 Sep 2015 15:36:27 +0200 Subject: [PATCH] [MSCV] sys/time.h does not exist here --- include/simgrid_config.h.in | 2 ++ include/smpi/smpi.h | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index 718e659bdf..ba2e9720af 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -60,6 +60,8 @@ /* Define to 1 if you have the header file. */ #cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@ +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_SYS_TIME_H @HAVE_SYS_TIME_H@ /* Define to 1 if mmalloc is compiled in. */ #cmakedefine HAVE_MMALLOC @HAVE_MMALLOC@ diff --git a/include/smpi/smpi.h b/include/smpi/smpi.h index 6e120983f8..a9117e2af7 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -11,9 +11,11 @@ #ifdef HAVE_UNISTD_H #include #endif +#ifdef HAVE_SYS_TIME_H +#include +#endif #include -#include #include #include -- 2.20.1