Kaynağa Gözat

Fix getting gettimeofday prototype

Samuel Thibault 10 yıl önce
ebeveyn
işleme
b9cc7fdf22
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  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 */