Fix compilation error on macOS after recent cleanup

Fixes the following error:
  error: must use 'struct' tag to refer to type 'timezone' in this scope
This commit is contained in:
Sergey Sharybin
2025-02-13 10:28:39 +01:00
parent e52f85b33c
commit 0b369f0ff1

View File

@@ -65,7 +65,7 @@ void BLI_time_sleep_ms(int ms)
double BLI_time_now_seconds()
{
timeval tv;
timezone tz;
struct timezone tz;
gettimeofday(&tv, &tz);
@@ -75,7 +75,7 @@ double BLI_time_now_seconds()
long int BLI_time_now_seconds_i()
{
timeval tv;
timezone tz;
struct timezone tz;
gettimeofday(&tv, &tz);