LibC: Define timezone structure

This commit is contained in:
2024-12-02 08:27:38 +02:00
parent a10ca47657
commit 11b6ee423e
2 changed files with 8 additions and 1 deletions

View File

@@ -6,7 +6,8 @@
int gettimeofday(struct timeval* __restrict tp, void* __restrict tzp)
{
// If tzp is not a null pointer, the behavior is unspecified.
(void)tzp;
if (tzp != nullptr)
*static_cast<struct timezone*>(tzp) = {};
timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);