aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-10-04 17:19:47 -0700
committerChris Robinson <[email protected]>2016-10-04 17:19:47 -0700
commitbb6fba2183a2f12d47a81c761936bc7b86dab848 (patch)
tree8276b60c503050885e7c1f982414d9c63cb287a7 /include
parent422f065809d4a93ce3294f50661ad877d8f97486 (diff)
Properly check for struct timespec
Diffstat (limited to 'include')
-rw-r--r--include/threads.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/threads.h b/include/threads.h
index a11405f7..c2848ee7 100644
--- a/include/threads.h
+++ b/include/threads.h
@@ -33,17 +33,11 @@ typedef void (*altss_dtor_t)(void*);
#include <windows.h>
-#if !defined(_TIMESPEC_DEFINED) && !(defined(_MSC_VER) && (_MSC_VER >= 1900))
-#define _TIMESPEC_DEFINED
+#ifndef HAVE_STRUCT_TIMESPEC
struct timespec {
time_t tv_sec;
long tv_nsec;
};
-
-struct itimerspec {
- struct timespec it_interval;
- struct timespec it_value;
-};
#endif
typedef DWORD althrd_t;