summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2017-11-09 09:43:37 -0700
committerBrian Paul <brianp@vmware.com>2017-11-09 14:13:59 -0700
commit750ee4182e7508acc04cce9bf4f4ea27f875ec38 (patch)
treea4c539851477b8bb83631ea3389cacd37d6f4777 /include
parentf8bae523d98953aa17105ecf12c5db499deb58ad (diff)
threads: fix MinGW build breakage
Fixes: f1a364878431c8 ("threads: update for late C11 changes") Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'include')
-rw-r--r--include/c11/threads_win32.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/c11/threads_win32.h b/include/c11/threads_win32.h
index 77d923aaf4..dac8ef7697 100644
--- a/include/c11/threads_win32.h
+++ b/include/c11/threads_win32.h
@@ -78,6 +78,9 @@ Configuration macro:
/* Visual Studio 2015 and later */
#if _MSC_VER >= 1900
#define HAVE_TIMESPEC
+#define HAVE_TIMESPEC_GET
+#elif defined(__MINGW32__)
+#define HAVE_TIMESPEC
#endif
#ifndef HAVE_TIMESPEC
@@ -645,7 +648,7 @@ tss_set(tss_t key, void *val)
/*-------------------- 7.25.7 Time functions --------------------*/
// 7.25.6.1
-#ifndef HAVE_TIMESPEC
+#ifndef HAVE_TIMESPEC_GET
static inline int
timespec_get(struct timespec *ts, int base)
{