Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[MSVC] no unistd here
authorMartin Quinson <martin.quinson@loria.fr>
Sun, 13 Sep 2015 12:57:48 +0000 (14:57 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Sun, 13 Sep 2015 12:57:48 +0000 (14:57 +0200)
include/simgrid_config.h.in
include/smpi/smpi.h

index c6c7101..718e659 100644 (file)
@@ -58,6 +58,9 @@
        #endif
 #endif
 
+/* Define to 1 if you have the <unistd.h> header file. */
+#cmakedefine HAVE_UNISTD_H @HAVE_UNISTD_H@
+
 /* Define to 1 if mmalloc is compiled in. */
 #cmakedefine HAVE_MMALLOC @HAVE_MMALLOC@
 
index 2a4bd89..6e12098 100644 (file)
@@ -7,7 +7,11 @@
 #ifndef SMPI_H
 #define SMPI_H
 
+#include <simgrid_config.h>
+#ifdef HAVE_UNISTD_H
 #include <unistd.h>
+#endif
+
 #include <stddef.h>
 #include <sys/time.h>
 #include <xbt/misc.h>