瀏覽代碼

Fix getting gettimeofday prototype

Samuel Thibault 10 年之前
父節點
當前提交
b9cc7fdf22
共有 1 個文件被更改,包括 4 次插入0 次删除
  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 */