From 8e769c22fb8f772262130bb82f862f377e05f513 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Mon, 13 Feb 2017 15:22:03 +0100 Subject: ipcpd: Fix build on FreeBSD Use labs for absolute value of a long, and defines bswap_64 as the FreeBSD function bswap64. --- src/ipcpd/normal/enroll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ipcpd/normal/enroll.c b/src/ipcpd/normal/enroll.c index 94e171c0..d09a62a9 100644 --- a/src/ipcpd/normal/enroll.c +++ b/src/ipcpd/normal/enroll.c @@ -217,7 +217,7 @@ int enroll_boot(char * dst_name) rtt.tv_sec = ntoh64(((uint64_t *) data)[0]); rtt.tv_nsec = ntoh64(((uint64_t *) data)[1]); - if (abs(ts_diff_ms(&t0, &rtt)) - delta_t > ENROLL_WARN_TIME_OFFSET) + if (labs(ts_diff_ms(&t0, &rtt)) - delta_t > ENROLL_WARN_TIME_OFFSET) log_warn("Clock offset above threshold."); free(data); -- cgit v1.2.3