[libc-commits] [libc] [libc] fix build issue in overlay mode (PR #108583)
via libc-commits
libc-commits at lists.llvm.org
Fri Sep 13 08:05:53 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Schrodinger ZHU Yifan (SchrodingerZhu)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/108583.diff
1 Files Affected:
- (modified) libc/src/__support/OSUtil/linux/vdso_sym.h (+2-2)
``````````diff
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);
``````````
</details>
https://github.com/llvm/llvm-project/pull/108583
More information about the libc-commits
mailing list