From 04eb03136466a18d81511e7ccadf51c08faa8edb Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Tue, 30 Aug 2016 14:29:08 +0200 Subject: lib, ipcp: Compile on Apple junk Disables robust mutexes and clock attributes for condition variables for compatibility with OSX (SUSv2). Implements clock_gettime and adds some defines for OSX compatibility in time_utils. --- src/ipcpd/normal/cdap_request.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ipcpd/normal/cdap_request.c') diff --git a/src/ipcpd/normal/cdap_request.c b/src/ipcpd/normal/cdap_request.c index cdbbb833..5839360b 100644 --- a/src/ipcpd/normal/cdap_request.c +++ b/src/ipcpd/normal/cdap_request.c @@ -48,7 +48,9 @@ struct cdap_request * cdap_request_create(enum cdap_opcode code, creq->result = -1; pthread_condattr_init(&cattr); +#ifndef __APPLE__ pthread_condattr_setclock(&cattr, PTHREAD_COND_CLOCK); +#endif pthread_cond_init(&creq->cond, &cattr); pthread_mutex_init(&creq->lock, NULL); -- cgit v1.2.3