projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f82b05c
)
fix fallback code for old kernels in clock_gettime
author
Rich Felker
<dalias@aerifal.cx>
Tue, 15 Apr 2014 03:48:40 +0000
(23:48 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 16 Apr 2014 06:46:05 +0000
(
02:46
-0400)
(cherry picked from commit
805698401dbac7ce3079fa97eaad5ba0508377f4
)
src/time/clock_gettime.c
patch
|
blob
|
history
diff --git
a/src/time/clock_gettime.c
b/src/time/clock_gettime.c
index ad5c09de9e79bcb684eac6ee08f253326584d9dc..ce9f22090a8eff4be06e01b8769fce098a79a49e 100644
(file)
--- a/
src/time/clock_gettime.c
+++ b/
src/time/clock_gettime.c
@@
-10,7
+10,7
@@
static int sc_clock_gettime(clockid_t clk, struct timespec *ts)
if (!r) return r;
if (r == -ENOSYS) {
if (clk == CLOCK_REALTIME) {
- __syscall(SYS_gettimeofday,
clk,
ts, 0);
+ __syscall(SYS_gettimeofday, ts, 0);
ts->tv_nsec = (int)ts->tv_nsec * 1000;
return 0;
}