From f892747dca85939c0c611e653e81741bb2a9e628 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Sun, 13 Sep 2015 14:57:48 +0200 Subject: [PATCH] [MSVC] no unistd here --- include/simgrid_config.h.in | 3 +++ include/smpi/smpi.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/include/simgrid_config.h.in b/include/simgrid_config.h.in index c6c71013fa..718e659bdf 100644 --- a/include/simgrid_config.h.in +++ b/include/simgrid_config.h.in @@ -58,6 +58,9 @@ #endif #endif +/* Define to 1 if you have the header file. */ +#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_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 2a4bd895ff..6e120983f8 100644 --- a/include/smpi/smpi.h +++ b/include/smpi/smpi.h @@ -7,7 +7,11 @@ #ifndef SMPI_H #define SMPI_H +#include +#ifdef HAVE_UNISTD_H #include +#endif + #include #include #include -- 2.20.1