diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-31 19:05:20 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-05-31 19:05:20 -0500 |
commit | d448f4e0c6a17170cad364b25d7208c29ac7604e (patch) | |
tree | 2cead6dd20c7f8c5c629733c624e855d0b64596a /system/musl/strftime-add-l-support.patch | |
parent | 0ee2191bdaf224bcc5c9bd4cfd3e42e0fe5fed16 (diff) | |
download | packages-d448f4e0c6a17170cad364b25d7208c29ac7604e.tar.gz packages-d448f4e0c6a17170cad364b25d7208c29ac7604e.tar.bz2 packages-d448f4e0c6a17170cad364b25d7208c29ac7604e.tar.xz packages-d448f4e0c6a17170cad364b25d7208c29ac7604e.zip |
system/musl: fix TLS accesses, add %l to strftime
Diffstat (limited to 'system/musl/strftime-add-l-support.patch')
-rw-r--r-- | system/musl/strftime-add-l-support.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/system/musl/strftime-add-l-support.patch b/system/musl/strftime-add-l-support.patch new file mode 100644 index 000000000..8305a9910 --- /dev/null +++ b/system/musl/strftime-add-l-support.patch @@ -0,0 +1,25 @@ +From 481def0e92ebfe81f40f416ddf345de15647e46b Mon Sep 17 00:00:00 2001 +From: "A. Wilcox" <AWilcox@Wilcox-Tech.com> +Date: Fri, 31 May 2019 19:03:20 -0500 +Subject: [PATCH] strftime: add %l support + +--- + src/time/strftime.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/time/strftime.c b/src/time/strftime.c +index cc53d536..98caa1f6 100644 +--- a/src/time/strftime.c ++++ b/src/time/strftime.c +@@ -95,6 +95,8 @@ const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm * + case 'H': + val = tm->tm_hour; + goto number; ++ case 'l': ++ def_pad = ' '; + case 'I': + val = tm->tm_hour; + if (!val) val = 12; +-- +2.21.0 + |