summaryrefslogtreecommitdiff
path: root/lib/frr_pthread.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-09-07 13:11:02 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-09-08 12:00:17 -0400
commitafc9534f6727f9298da4881d2e1c8279f6ca315f (patch)
tree4a9bc2db693d7a5e10fb0ec36073db307def4e99 /lib/frr_pthread.h
parent7b90f00cceb71d0df28073b778d969ec09065199 (diff)
lib: Detect if pthread_condattr_setclock is available
Auto-detect if pthread_condattr_setclock is available and if it is not allow the code to compile around the issue. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/frr_pthread.h')
-rw-r--r--lib/frr_pthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/frr_pthread.h b/lib/frr_pthread.h
index cc4fc74337..732e2925fe 100644
--- a/lib/frr_pthread.h
+++ b/lib/frr_pthread.h
@@ -234,4 +234,8 @@ void frr_pthread_yield(void);
*/
uint32_t frr_pthread_get_id(void);
+#ifndef HAVE_PTHREAD_CONDATTR_SETCLOCK
+#define pthread_condattr_setclock(A, B)
+#endif
+
#endif /* _FRR_PTHREAD_H */