From 64d1a86cb8da245c982d470a7dfdd635197e6e5e Mon Sep 17 00:00:00 2001 From: Aliaksey Kandratsenka Date: Sat, 9 May 2015 15:38:12 -0700 Subject: include time.h for struct timespec on Visual Studio 2015 This patch was submitted by user wmamrak. --- src/windows/port.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/windows/port.h b/src/windows/port.h index 0af6ea7..0350f45 100644 --- a/src/windows/port.h +++ b/src/windows/port.h @@ -64,6 +64,11 @@ #include #include /* for rand, srand, _strtoxxx */ +#if _MSC_VER >= 1900 +#define _TIMESPEC_DEFINED +#include +#endif + /* * 4018: signed/unsigned mismatch is common (and ok for signed_i < unsigned_i) * 4244: otherwise we get problems when subtracting two size_t's to an int -- cgit v1.2.1