@@ -34,7 +34,9 @@ extern "C" {
#include <windows.h>
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#include <time.h>
#include <stdio.h>
#include <errno.h>
@@ -305,7 +305,9 @@ double starpu_timing_now(void);
/* Try to fetch the system definition of timespec */
#if !defined(_MSC_VER) || defined(BUILDING_STARPU)
#include <pthread.h>