Ver Fonte

I failed to check the patch adding support for the new (stupid) US 2007
daylight savings time rules when xlocale was enabled. Fix compile error.

Eric Andersen há 19 anos atrás
pai
commit
4776eaf3e3
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      libc/misc/time/time.c

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

@@ -196,7 +196,9 @@ libc_hidden_proto(__ctype_b)
 #endif
 
 #if defined (L_tzset) || defined (L_localtime_r) || defined(L_strftime) || \
-    defined(L__time_mktime) || defined(L__time_mktime_tzi)
+    defined(L__time_mktime) || defined(L__time_mktime_tzi) || \
+    ((defined(L_strftime) || defined(L_strftime_l)) && \
+    defined(__UCLIBC_HAS_XLOCALE__))
 
 void _time_tzset(int use_old_rules);
 libc_hidden_proto(_time_tzset)