From e251d26560ec024c995afb60f8bb35cd2b844e7e Mon Sep 17 00:00:00 2001 From: GoaLitiuM Date: Mon, 4 May 2015 15:56:01 +0300 Subject: [PATCH] w32-pthreads: Fix build errors with VS2015 --- deps/w32-pthreads/pthread.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/deps/w32-pthreads/pthread.h b/deps/w32-pthreads/pthread.h index aadc99d05..0e834aefc 100644 --- a/deps/w32-pthreads/pthread.h +++ b/deps/w32-pthreads/pthread.h @@ -205,6 +205,10 @@ typedef unsigned long DWORD_PTR; typedef unsigned long ULONG_PTR; #endif + +#if defined(_MSC_VER) && _MSC_VER >= 1900 +#define HAVE_STRUCT_TIMESPEC +#endif /* * ----------------- * autoconf switches