summaryrefslogtreecommitdiff
path: root/patches/mesa-mesa/0005-Also-provide-timespec_get-fallback-if-a-POSIX-platfo.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/mesa-mesa/0005-Also-provide-timespec_get-fallback-if-a-POSIX-platfo.patch')
-rw-r--r--patches/mesa-mesa/0005-Also-provide-timespec_get-fallback-if-a-POSIX-platfo.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/patches/mesa-mesa/0005-Also-provide-timespec_get-fallback-if-a-POSIX-platfo.patch b/patches/mesa-mesa/0005-Also-provide-timespec_get-fallback-if-a-POSIX-platfo.patch
new file mode 100644
index 0000000..0576e18
--- /dev/null
+++ b/patches/mesa-mesa/0005-Also-provide-timespec_get-fallback-if-a-POSIX-platfo.patch
@@ -0,0 +1,27 @@
+From e04c7cfa3a3a560476d361a828070f7785da8bf0 Mon Sep 17 00:00:00 2001
+From: Jon Turney <jon.turney@dronecode.org.uk>
+Date: Fri, 10 Nov 2017 12:22:25 +0000
+Subject: [PATCH 2/2] Also provide timespec_get fallback if a POSIX platform
+ doesn't have it
+
+... not just on Windows
+---
+ include/c11/threads_posix.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h
+index 7bf6a0f6ef6..45cb6075e6e 100644
+--- a/include/c11/threads_posix.h
++++ b/include/c11/threads_posix.h
+@@ -382,7 +382,7 @@ tss_set(tss_t key, void *val)
+
+ /*-------------------- 7.25.7 Time functions --------------------*/
+ // 7.25.6.1
+-#if 0
++#ifndef HAVE_TIMESPEC_GET
+ static inline int
+ timespec_get(struct timespec *ts, int base)
+ {
+--
+2.15.0
+