odhcpd: fix compilation with musl 1.2.0
[project/odhcpd.git] / src / odhcpd.c
index 4b8e5898d450bc661e0f4d29b48dfff1f35a101c..26094b1143c4ca18f785969d54648eaa0734b9d1 100644 (file)
@@ -440,7 +440,7 @@ int odhcpd_urandom(void *data, size_t len)
 time_t odhcpd_time(void)
 {
        struct timespec ts;
-       syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &ts);
+       clock_gettime(CLOCK_MONOTONIC, &ts);
        return ts.tv_sec;
 }