Sfoglia il codice sorgente

tweak to get rid of warning when TZ is disabled

Mike Frysinger 20 anni fa
parent
commit
53bf32f39e
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      libc/misc/time/time.c

+ 2 - 0
libc/misc/time/time.c

@@ -1939,7 +1939,9 @@ void tzset(void)
 	daylight = !!_time_tzinfo[1].tzname[0];
 	timezone = _time_tzinfo[0].gmt_offset;
 
+#if defined(__UCLIBC_HAS_TZ_FILE__)
  FAST_DONE:
+#endif
 	TZUNLOCK;
 }