commit | 8b9c59b3ec8c4313895bedb0ffd823a7a4753eca | [log] [tgz] |
---|---|---|
author | Bruce A. Mah <bmah@kitchenlab.org> | Fri Mar 29 15:52:56 2019 -0700 |
committer | GitHub <noreply@github.com> | Fri Mar 29 15:52:56 2019 -0700 |
tree | d780a15153ed083658fae20913282aedc3350a08 | |
parent | 40e7c05440583f229edd6b6ca05c5d97b66fcf15 [diff] |
fix: Remove Linux-ism in clock_gettime(3). (#853) Fixes build on FreeBSD. Possible fix for #829.
diff --git a/src/iperf_time.c b/src/iperf_time.c index 0ca3790..5f94dc0 100644 --- a/src/iperf_time.c +++ b/src/iperf_time.c
@@ -40,7 +40,7 @@ { struct timespec ts; int result; - result = clock_gettime(CLOCK_MONOTONIC_RAW, &ts); + result = clock_gettime(CLOCK_MONOTONIC, &ts); if (result == 0) { time1->secs = (uint32_t) ts.tv_sec; time1->usecs = (uint32_t) ts.tv_nsec / 1000;