diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:24:54 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:24:54 +0100 |
| commit | 69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 (patch) | |
| tree | 489046ce167b8b20d205f87f4ae1f4b680c19b43 /lib/libc/time/time.c | |
| parent | 0d5bffe9d2caadc1215c875e560c52bca5161c54 (diff) | |
Add getauxval and cleanup libc startup
Diffstat (limited to 'lib/libc/time/time.c')
| -rw-r--r-- | lib/libc/time/time.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 <asm/vdso.h> // for __vdso_time -#include <time.h> // for timespec, clock_gettime, time_t, CLOCK_REALTIME +#include <asm/vdso.h> +#include <time.h> 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 |
