diff --git a/AK/Time.cpp b/AK/Time.cpp index 16a1620f9ac..923f6404da6 100644 --- a/AK/Time.cpp +++ b/AK/Time.cpp @@ -7,11 +7,10 @@ #include #include -#include -#if defined(AK_OS_WINDOWS) -# include -#else -# include +#ifdef AK_OS_WINDOWS +# define timeval dummy_timeval +# include +# undef timeval #endif namespace AK { diff --git a/AK/Time.h b/AK/Time.h index 6e7ce50067d..0d24dd207ab 100644 --- a/AK/Time.h +++ b/AK/Time.h @@ -12,8 +12,11 @@ #include #include #include -#if defined(AK_OS_WINDOWS) -# include +#ifdef AK_OS_WINDOWS +struct timeval { + long tv_sec; + long tv_usec; +}; #else # include #endif