aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
Diffstat (limited to 'runit')
-rw-r--r--runit/runsv.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/runit/runsv.c b/runit/runsv.c
index 737909b0e..36d85101e 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -51,18 +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#if defined(__NR_clock_gettime) 56 clock_gettime(CLOCK_REALTIME, ts);
59 syscall(__NR_clock_gettime, CLOCK_REALTIME, ts);
60#elif __TIMESIZE == 64
61 syscall(__NR_clock_gettime64, CLOCK_REALTIME, ts);
62#else
63# error "We currently don't support architectures without " \
64 "the __NR_clock_gettime syscall and 32-bit time_t"
65#endif
66} 57}
67#else 58#else
68static void gettimeofday_ns(struct timespec *ts) 59static void gettimeofday_ns(struct timespec *ts)