summaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc/uClibc-0.9.28.1-time-locale.patch
blob: f449ad6a1095688c976838f32182b3d42465a5e7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Index: libc/misc/time/time.c
===================================================================
--- a/libc/misc/time/time.c	(revision 17534)
+++ b/libc/misc/time/time.c	(revision 17647)
@@ -158,7 +158,9 @@
 #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);