[libc-commits] [libc] [libc] fix build issue in overlay mode (PR #108583)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Fri Sep 13 08:05:20 PDT 2024
https://github.com/SchrodingerZhu created https://github.com/llvm/llvm-project/pull/108583
None
>From f62bbcf883b8305bfe683e2fc1db6abce9424c65 Mon Sep 17 00:00:00 2001
From: Schrodinger ZHU Yifan <yifanzhu at rochester.edu>
Date: Fri, 13 Sep 2024 11:04:24 -0400
Subject: [PATCH] [libc] fix build issue in overlay mode
---
libc/src/__support/OSUtil/linux/vdso_sym.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/src/__support/OSUtil/linux/vdso_sym.h b/libc/src/__support/OSUtil/linux/vdso_sym.h
index eb5f204a82f304..968e1536c4d270 100644
--- a/libc/src/__support/OSUtil/linux/vdso_sym.h
+++ b/libc/src/__support/OSUtil/linux/vdso_sym.h
@@ -44,8 +44,8 @@ template <VDSOSym sym> LIBC_INLINE constexpr auto dispatcher() {
else if constexpr (sym == VDSOSym::ClockGetTime64)
return static_cast<int (*)(clockid_t, __kernel_timespec *)>(nullptr);
else if constexpr (sym == VDSOSym::GetTimeOfDay)
- return static_cast<int (*)(timeval *__restrict, timezone *__restrict)>(
- nullptr);
+ return static_cast<int (*)(timeval *__restrict,
+ struct timezone *__restrict)>(nullptr);
else if constexpr (sym == VDSOSym::GetCpu)
return static_cast<int (*)(unsigned *, unsigned *, getcpu_cache *)>(
nullptr);
More information about the libc-commits
mailing list