summaryrefslogtreecommitdiff
path: root/win32/time.h
diff options
context:
space:
mode:
Diffstat (limited to 'win32/time.h')
-rw-r--r--win32/time.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/win32/time.h b/win32/time.h
index d5d86eb1ed..c6679b6d9a 100644
--- a/win32/time.h
+++ b/win32/time.h
@@ -29,12 +29,14 @@ struct itimerval {
};
#ifndef timespec
+#if _MSC_VER < 1900
struct timespec
{
time_t tv_sec; /* seconds */
long tv_nsec; /* nanoseconds */
};
#endif
+#endif
#define ITIMER_REAL 0 /*generates sigalrm */
#define ITIMER_VIRTUAL 1 /*generates sigvtalrm */