diff options
author | Ron Yorston <rmy@pobox.com> | 2020-01-08 12:30:49 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2020-01-08 12:30:49 +0000 |
commit | a9271a8e97e6e7be5285330d5f19352decabf807 (patch) | |
tree | bf3c4464c369a15a46454792dac167505f74769f /runit | |
parent | b0b7ab792bc1f45963f4b84b94faaf05054e1613 (diff) | |
parent | 9ec836c033fc6e55e80f3309b3e05acdf09bb297 (diff) | |
download | busybox-w32-a9271a8e97e6e7be5285330d5f19352decabf807.tar.gz busybox-w32-a9271a8e97e6e7be5285330d5f19352decabf807.tar.bz2 busybox-w32-a9271a8e97e6e7be5285330d5f19352decabf807.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'runit')
-rw-r--r-- | runit/runsv.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/runit/runsv.c b/runit/runsv.c index ccc762d78..36d85101e 100644 --- a/runit/runsv.c +++ b/runit/runsv.c | |||
@@ -51,11 +51,9 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
51 | #if ENABLE_MONOTONIC_SYSCALL | 51 | #if ENABLE_MONOTONIC_SYSCALL |
52 | #include <sys/syscall.h> | 52 | #include <sys/syscall.h> |
53 | 53 | ||
54 | /* libc has incredibly messy way of doing this, | ||
55 | * typically requiring -lrt. We just skip all this mess */ | ||
56 | static void gettimeofday_ns(struct timespec *ts) | 54 | static void gettimeofday_ns(struct timespec *ts) |
57 | { | 55 | { |
58 | syscall(__NR_clock_gettime, CLOCK_REALTIME, ts); | 56 | clock_gettime(CLOCK_REALTIME, ts); |
59 | } | 57 | } |
60 | #else | 58 | #else |
61 | static void gettimeofday_ns(struct timespec *ts) | 59 | static void gettimeofday_ns(struct timespec *ts) |