aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
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;