diff options
author | Rich Felker <dalias@aerifal.cx> | 2014-04-14 23:48:40 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2014-04-16 02:46:05 -0400 |
commit | 0575c8f7ad2e67c362c14ae6c770e78744fc8246 (patch) | |
tree | 5f8efbfb551b49f1e3eb8b9c5af902ab4dac06a7 /src | |
parent | f82b05c496b0597d35e437a15105ee796bc3a8d6 (diff) | |
download | musl-0575c8f7ad2e67c362c14ae6c770e78744fc8246.tar.gz musl-0575c8f7ad2e67c362c14ae6c770e78744fc8246.tar.bz2 musl-0575c8f7ad2e67c362c14ae6c770e78744fc8246.tar.xz musl-0575c8f7ad2e67c362c14ae6c770e78744fc8246.zip |
fix fallback code for old kernels in clock_gettime
(cherry picked from commit 805698401dbac7ce3079fa97eaad5ba0508377f4)
Diffstat (limited to 'src')
-rw-r--r-- | src/time/clock_gettime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/clock_gettime.c b/src/time/clock_gettime.c index ad5c09de..ce9f2209 100644 --- 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; } |