#define XBT_LOG_LOCALLY_DEFINE_XBT_CHANNEL /* MSVC don't want it to be declared extern in headers and local here */
+
#include "xbt/misc.h"
#include "simgrid_config.h"
-#include "src/portable.h"
#include "xbt/sysdep.h"
#include "xbt/log.h"
#include "xbt/dynar.h"
#include "simgrid/sg_config.h"
+#include "src/portable.h"
#include <stdio.h>
#ifdef _WIN32
#include <signal.h> /* To silence MSVC on abort() */
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
XBT_LOG_NEW_DEFAULT_SUBCATEGORY(module, xbt, "module handling");