#ifndef SMPI_H
#define SMPI_H
+#include <simgrid_config.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
-#include <stddef.h>
+#endif
+#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
+#endif
+
+#include <stddef.h>
#include <xbt/misc.h>
#include <xbt/function_types.h>