Explorar o código

Fix getting gettimeofday prototype

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

+ 4 - 0
include/starpu_util.h

@@ -324,6 +324,10 @@ struct timespec {
 };
 #endif /* STARPU_TIMESPEC_DEFINED */
 #endif /* STARPU_HAVE_STRUCT_TIMESPEC */
+/* Fetch gettimeofday on mingw/cygwin */
+#if defined(__MING32__) || defined(__CYGWIN__)
+#include <sys/time.h>
+#endif
 #else
 #include <sys/time.h>
 #endif /* _WIN32 */