c11/haiku: Define missing timespec_get on Haiku
authorAlexander von Gluck IV <kallisti5@unixzen.com>
Sun, 12 Nov 2017 21:24:15 +0000 (15:24 -0600)
committerAlexander von Gluck IV <kallisti5@unixzen.com>
Mon, 13 Nov 2017 22:45:14 +0000 (16:45 -0600)
Reviewed-by: Brian Paul <brianp@vmware.com>
include/c11/threads_posix.h

index 7bf6a0f6ef6f053aaee3e9e234908ddfae4adbb5..2d7ac1326dec4718dd92ab1a165196b7707175ce 100644 (file)
@@ -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)
 {