projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbdef93
)
system-linux: fix compilation with musl 1.2.0
author
Rosen Penev
<rosenp@gmail.com>
Wed, 25 Mar 2020 23:11:40 +0000
(16:11 -0700)
committer
Hans 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
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index d533be8deb9e89179311cf2884168be47df9626f..d36d2878b93ba0927166b29a54916d323aeb024b 100644
(file)
--- 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)