Forráskód Böngészése

Fix getting gettimeofday prototype

Samuel Thibault 10 éve
szülő
commit
b9cc7fdf22
1 módosított fájl, 4 hozzáadás és 0 törlés
  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 */