Explorar o código

mingw & cygwin have gettimeofday (and possibly timespec) in sys/time.h

Samuel Thibault %!s(int64=10) %!d(string=hai) anos
pai
achega
15fa7c89da
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      include/starpu_util.h

+ 3 - 0
include/starpu_util.h

@@ -276,6 +276,9 @@ double starpu_timing_now(void);
 #ifdef _WIN32
 /* Try to fetch the system definition of timespec */
 #include <time.h>
+#if defined(__MINGW32__) || defined(__CYGWIN__)
+#include <sys/time.h>
+#endif
 #if !defined(_MSC_VER) || defined(BUILDING_STARPU)
 #include <pthread.h>
 #endif