From: Rosen Penev Date: Wed, 25 Mar 2020 23:11:40 +0000 (-0700) Subject: system-linux: fix compilation with musl 1.2.0 X-Git-Url: http://git.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=b1e83288fdbf9ac80f5377b279404adaf05e0c4d system-linux: fix compilation with musl 1.2.0 Switched to the plain function instead of the now gone syscall. Signed-off-by: Rosen Penev --- diff --git a/system-linux.c b/system-linux.c index d533be8..d36d287 100644 --- a/system-linux.c +++ b/system-linux.c @@ -2421,7 +2421,7 @@ time_t system_get_rtime(void) struct timespec ts; struct timeval tv; - if (syscall(__NR_clock_gettime, CLOCK_MONOTONIC, &ts) == 0) + if (clock_gettime(CLOCK_MONOTONIC, &ts) == 0) return ts.tv_sec; if (gettimeofday(&tv, NULL) == 0)