Mesa (master): c11/haiku: Define missing timespec_get on Haiku

Alexander von Gluck IV kallisti5 at kemper.freedesktop.org
Mon Nov 13 22:45:21 UTC 2017


Module: Mesa
Branch: master
Commit: 8f9d9ddcae2f6f996a394d193a98358fee538fe3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f9d9ddcae2f6f996a394d193a98358fee538fe3

Author: Alexander von Gluck IV <kallisti5 at unixzen.com>
Date:   Sun Nov 12 15:24:15 2017 -0600

c11/haiku: Define missing timespec_get on Haiku

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 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 7bf6a0f6ef..2d7ac1326d 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
+#ifdef __HAIKU__
 static inline int
 timespec_get(struct timespec *ts, int base)
 {




More information about the mesa-commit mailing list