Kaynağa Gözat

Frank Mehnert writes:
libc/misc/time/time.c does not compile if __UCLIBC_HAS_TZ_FILE__ is disabled
but __UCLIBC_HAS_TZ_CACHING__ is enabled. The following patch fixes this
issue.

Mike Frysinger 20 yıl önce
ebeveyn
işleme
632cf2de06
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      libc/misc/time/time.c

+ 1 - 1
libc/misc/time/time.c

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