aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-31 17:41:10 -0700
committerChris Robinson <[email protected]>2014-05-31 17:41:10 -0700
commit933f51a8bfd1776690cd1cae2e01f35ec3bf3536 (patch)
tree8f04b7115155894d89dfe2ac1b2d2340dcdcb91d /include
parent1d45c439b83565699a1fc220dc7f34c9ceb11a7e (diff)
Only define struct timespec if _TIMESPEC_DEFINED isn't set
This matches what the mingw-w64 headers define with the struct.
Diffstat (limited to 'include')
-rw-r--r--include/threads.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/threads.h b/include/threads.h
index cde4b91f..25a75625 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -33,11 +33,17 @@ typedef void (*altss_dtor_t)(void*);
#include <windows.h>
-#ifndef __MINGW32__
+#ifndef _TIMESPEC_DEFINED
+#define _TIMESPEC_DEFINED
struct timespec {
time_t tv_sec;
long tv_nsec;
};
+
+struct itimerspec {
+ struct timespec it_interval;
+ struct timespec it_value;
+};
#endif
typedef DWORD althrd_t;