From 69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 Mon Sep 17 00:00:00 2001 From: Kacper Date: Mon, 15 Dec 2025 18:24:54 +0100 Subject: Add getauxval and cleanup libc startup --- lib/libc/time/time.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/libc/time/time.c') diff --git a/lib/libc/time/time.c b/lib/libc/time/time.c index 3f8848a8..b5f0e449 100644 --- a/lib/libc/time/time.c +++ b/lib/libc/time/time.c @@ -1,11 +1,11 @@ -#include // for __vdso_time -#include // for timespec, clock_gettime, time_t, CLOCK_REALTIME +#include +#include time_t time(time_t *tloc) { struct timespec ts; -#if defined(__x86_64__) +#if defined(__VDSO_TIME) if (__vdso_time) return __vdso_time(tloc); #endif -- cgit v1.2.3