aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
authorRon Yorston <rmy@pobox.com>2020-01-08 12:30:49 +0000
committerRon Yorston <rmy@pobox.com>2020-01-08 12:30:49 +0000
commita9271a8e97e6e7be5285330d5f19352decabf807 (patch)
treebf3c4464c369a15a46454792dac167505f74769f /runit
parentb0b7ab792bc1f45963f4b84b94faaf05054e1613 (diff)
parent9ec836c033fc6e55e80f3309b3e05acdf09bb297 (diff)
downloadbusybox-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.c4
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 */
56static void gettimeofday_ns(struct timespec *ts) 54static 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
61static void gettimeofday_ns(struct timespec *ts) 59static void gettimeofday_ns(struct timespec *ts)