diff --git a/windows/msvc/sources.props b/windows/msvc/sources.props
index 569f24c76b7cc09ac6f15fad82c0a0dc1b2af862..4ea917552a1a3960e76430437f9e153516c02627 100644
--- a/windows/msvc/sources.props
+++ b/windows/msvc/sources.props
@@ -23,6 +23,7 @@
     <ClCompile Include="$(PyBaseDir)extmod\modurandom.c" />
     <ClCompile Include="$(PyBaseDir)extmod\modure.c" />
     <ClCompile Include="$(PyBaseDir)extmod\moduzlib.c" />
+    <ClCompile Include="$(PyBaseDir)extmod\utime_mphal.c" />
   </ItemGroup>
   <ItemGroup>
     <ClInclude Include="$(PyBaseDir)py\*.h" />
diff --git a/windows/windows_mphal.c b/windows/windows_mphal.c
index 0f00597af0bffce624d2a504617a83d481583043..1b2ed314ab7f234e0a8b0638b3abade03e5a41b8 100644
--- a/windows/windows_mphal.c
+++ b/windows/windows_mphal.c
@@ -28,9 +28,9 @@
 #include "py/mpstate.h"
 #include "py/mphal.h"
 
+#include <sys/time.h>
 #include <windows.h>
 #include <unistd.h>
-#include <sys/time.h>
 
 HANDLE std_in = NULL;
 HANDLE con_out = NULL;