summaryrefslogtreecommitdiff
path: root/patches/mesa-mesa/0005-Provide-timespec_get-in-C11-thread.h-emulation-on-PO.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/mesa-mesa/0005-Provide-timespec_get-in-C11-thread.h-emulation-on-PO.patch')
-rw-r--r--patches/mesa-mesa/0005-Provide-timespec_get-in-C11-thread.h-emulation-on-PO.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/patches/mesa-mesa/0005-Provide-timespec_get-in-C11-thread.h-emulation-on-PO.patch b/patches/mesa-mesa/0005-Provide-timespec_get-in-C11-thread.h-emulation-on-PO.patch
new file mode 100644
index 0000000..d0d7e0e
--- /dev/null
+++ b/patches/mesa-mesa/0005-Provide-timespec_get-in-C11-thread.h-emulation-on-PO.patch
@@ -0,0 +1,31 @@
+From 90cf1c8dc3ab631f5a196533ef87d3df28f63f56 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] Provide timespec_get() in C11 thread.h emulation on POSIX
+ also
+
+Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
+---
+ include/c11/threads_posix.h | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/include/c11/threads_posix.h b/include/c11/threads_posix.h
+index 2d7ac1326de..25076f1b6e5 100644
+--- a/include/c11/threads_posix.h
++++ b/include/c11/threads_posix.h
+@@ -382,7 +382,6 @@ tss_set(tss_t key, void *val)
+
+ /*-------------------- 7.25.7 Time functions --------------------*/
+ // 7.25.6.1
+-#ifdef __HAIKU__
+ static inline int
+ timespec_get(struct timespec *ts, int base)
+ {
+@@ -393,4 +392,3 @@ timespec_get(struct timespec *ts, int base)
+ }
+ return 0;
+ }
+-#endif
+--
+2.15.0
+