summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/uClibc/uClibc-0.9.28-new_dst_rules.patch22
1 files changed, 12 insertions, 10 deletions
diff --git a/toolchain/uClibc/uClibc-0.9.28-new_dst_rules.patch b/toolchain/uClibc/uClibc-0.9.28-new_dst_rules.patch
index af1a23897..8b1a5a9ac 100644
--- a/toolchain/uClibc/uClibc-0.9.28-new_dst_rules.patch
+++ b/toolchain/uClibc/uClibc-0.9.28-new_dst_rules.patch
@@ -1,11 +1,13 @@
--- uClibc/libc/misc/time/time.c (revision 16488)
+++ uClibc/libc/misc/time/time.c (working copy)
-@@ -155,6 +155,20 @@
+@@ -157,6 +157,22 @@
#define TZNAME_MAX _POSIX_TZNAME_MAX
#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);
+
@@ -21,16 +23,16 @@
/**********************************************************************/
/* The era code is currently unfinished. */
/* #define ENABLE_ERA_CODE */
-@@ -544,7 +558,7 @@
+@@ -532,7 +548,7 @@
{
- TZLOCK;
+ __UCLIBC_MUTEX_LOCK(_time_tzlock);
- tzset();
+ _time_tzset(*timer < new_rule_starts);
__time_localtime_tzi(timer, result, _time_tzinfo);
-@@ -968,7 +982,8 @@
+@@ -956,7 +972,8 @@
unsigned char mod;
unsigned char code;
@@ -40,7 +42,7 @@
lvl = 0;
p = format;
-@@ -1650,7 +1665,9 @@
+@@ -1644,7 +1661,9 @@
6, 0, 0, /* Note: overloaded for non-M non-J case... */
0, 1, 0, /* J */
',', 'M', '4', '.', '1', '.', '0',
@@ -51,7 +53,7 @@
};
#define TZ vals
-@@ -1658,6 +1675,7 @@
+@@ -1652,6 +1671,7 @@
#define RANGE (vals + 7)
#define RULE (vals + 11 - 1)
#define DEFAULT_RULES (vals + 22)
@@ -59,7 +61,7 @@
/* Initialize to UTC. */
int daylight = 0;
-@@ -1782,6 +1800,11 @@
+@@ -1774,6 +1794,11 @@
void tzset(void)
{
@@ -71,7 +73,7 @@
register const char *e;
register char *s;
long off;
-@@ -1904,7 +1927,15 @@
+@@ -1896,7 +1921,15 @@
} else { /* OK, we have dst, so get some rules. */
count = 0;
if (!*e) { /* No rules so default to US rules. */
@@ -88,7 +90,7 @@
}
do {
-@@ -2238,6 +2269,8 @@
+@@ -2230,6 +2263,8 @@
--d;
}