diff --git a/src/graphics.cpp b/src/graphics.cpp
index 4508175..5723ea0 100644
--- a/src/graphics.cpp
+++ b/src/graphics.cpp
@@ -19,6 +19,10 @@
** along with mkxp. If not, see .
*/
+#if windows
+ #define HAVE_GETTIMEOFDAY 1
+#endif
+
#include "graphics.h"
#include "util.h"
@@ -46,6 +50,9 @@
#include
#ifndef _MSC_VER
+#if windows
+ #define _SYS_TIME_H_
+#endif
#include
#endif
#include