[libc-commits] [libc] a643836 - [libc] fix build issue in overlay mode (#108583)

via libc-commits libc-commits at lists.llvm.org
Fri Sep 13 08:10:14 PDT 2024


Author: Schrodinger ZHU Yifan
Date: 2024-09-13T11:10:10-04:00
New Revision: a6438360d416f4529574eebf6aa65b80d48ef85e

URL: https://github.com/llvm/llvm-project/commit/a6438360d416f4529574eebf6aa65b80d48ef85e
DIFF: https://github.com/llvm/llvm-project/commit/a6438360d416f4529574eebf6aa65b80d48ef85e.diff

LOG: [libc] fix build issue in overlay mode (#108583)

Added: 
    

Modified: 
    libc/src/__support/OSUtil/linux/vdso_sym.h

Removed: 
    


################################################################################
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