diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-03-25 16:11:40 -0700 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2020-03-26 20:46:11 +0100 |
commit | b1e83288fdbf9ac80f5377b279404adaf05e0c4d (patch) | |
tree | e5cfe3f734a999d88a98f39b4451f257047fe33e /system-linux.c | |
parent | dbdef938279ec649b25b98a9b61f81f17953ef21 (diff) |
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 <rosenp@gmail.com>
Diffstat (limited to 'system-linux.c')
-rw-r--r-- | system-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |