summaryrefslogtreecommitdiff
path: root/src/ipcpd/normal/cdap_request.c
diff options
context:
space:
mode:
authorSander Vrijders <[email protected]>2016-08-31 14:24:10 +0200
committerSander Vrijders <[email protected]>2016-08-31 14:24:10 +0200
commit63b63e0f6ab9f743fc34623bb1caa9852227f046 (patch)
tree721c6c6a7b394dc758ffa12bb3a1261d9817207f /src/ipcpd/normal/cdap_request.c
parent52db4952d80a10aae464274acdd7401267818b28 (diff)
parent04eb03136466a18d81511e7ccadf51c08faa8edb (diff)
downloadouroboros-63b63e0f6ab9f743fc34623bb1caa9852227f046.tar.gz
ouroboros-63b63e0f6ab9f743fc34623bb1caa9852227f046.zip
Merged in dstaesse/ouroboros/be-apple (pull request #230)
lib, ipcp: Compile on Apple junk
Diffstat (limited to 'src/ipcpd/normal/cdap_request.c')
-rw-r--r--src/ipcpd/normal/cdap_request.c2
1 files changed, 2 insertions, 0 deletions
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);