From 61fcfcda68370132d2a1a90cf4cf00b4443ab22e Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Tue, 27 Oct 2015 10:43:35 -0700 Subject: [PATCH] Fix redefinition of timespec in VS2015 VS2015 now defines timespec --- src/civetweb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/civetweb.c b/src/civetweb.c index faa88cbf..864d0004 100755 --- a/src/civetweb.c +++ b/src/civetweb.c @@ -320,6 +320,9 @@ typedef DWORD clockid_t; #define CLOCK_REALTIME (2) #endif +#if defined(_MSC_VER) && (_MSC_VER >= 1900) +#define _TIMESPEC_DEFINED +#endif #ifndef _TIMESPEC_DEFINED struct timespec { time_t tv_sec; /* seconds */