system-linux: fix compilation with musl 1.2.0
authorRosen Penev <rosenp@gmail.com>
Wed, 25 Mar 2020 23:11:40 +0000 (16:11 -0700)
committerHans Dedecker <dedeckeh@gmail.com>
Thu, 26 Mar 2020 19:46:11 +0000 (20:46 +0100)
Switched to the plain function instead of the now gone syscall.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
system-linux.c

index d533be8deb9e89179311cf2884168be47df9626f..d36d2878b93ba0927166b29a54916d323aeb024b 100644 (file)
@@ -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)