aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runit/runsv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/runit/runsv.c b/runit/runsv.c
index ccc762d78..737909b0e 100644
--- a/runit/runsv.c
+++ b/runit/runsv.c
@@ -55,7 +55,14 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
55 * typically requiring -lrt. We just skip all this mess */ 55 * typically requiring -lrt. We just skip all this mess */
56static void gettimeofday_ns(struct timespec *ts) 56static void gettimeofday_ns(struct timespec *ts)
57{ 57{
58#if defined(__NR_clock_gettime)
58 syscall(__NR_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
59} 66}
60#else 67#else
61static void gettimeofday_ns(struct timespec *ts) 68static void gettimeofday_ns(struct timespec *ts)