compat CHANGE support for systems without clock_gettime()
diff --git a/src/session_server.c b/src/session_server.c
index 3a4c509..6473fe2 100644
--- a/src/session_server.c
+++ b/src/session_server.c
@@ -532,7 +532,7 @@
uint8_t our_id, queue_last;
struct timespec ts;
- clock_gettime(CLOCK_REALTIME, &ts);
+ nc_gettimespec(&ts);
ts.tv_sec += NC_READ_TIMEOUT;
/* LOCK */
@@ -567,7 +567,7 @@
/* is it our turn? */
while (ps->queue[ps->queue_begin] != our_id) {
- clock_gettime(CLOCK_REALTIME, &ts);
+ nc_gettimespec(&ts);
ts.tv_sec += NC_READ_TIMEOUT;
ret = pthread_cond_timedwait(&ps->cond, &ps->lock, &ts);
@@ -592,7 +592,7 @@
int ret;
struct timespec ts;
- clock_gettime(CLOCK_REALTIME, &ts);
+ nc_gettimespec(&ts);
ts.tv_sec += NC_READ_TIMEOUT;
/* LOCK */