From 0b9ed550267ca0efba094d14c250f268d744818d Mon Sep 17 00:00:00 2001 From: stijn <stijn@ignitron.net> Date: Tue, 1 Nov 2016 10:24:22 +0100 Subject: [PATCH] windows: Fix utime_mphal compilation for msvc --- windows/msvc/sources.props | 1 + windows/windows_mphal.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/windows/msvc/sources.props b/windows/msvc/sources.props index 569f24c76..4ea917552 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 0f00597af..1b2ed314a 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; -- GitLab