Explorar el Código

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 hace 19 años
padre
commit
4776eaf3e3
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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)