浏览代码

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 年之前
父节点
当前提交
632cf2de06
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;