summaryrefslogtreecommitdiffstats
path: root/toolchain/musl/patches/110-read_timezone_from_fs.patch
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/musl/patches/110-read_timezone_from_fs.patch')
-rw-r--r--toolchain/musl/patches/110-read_timezone_from_fs.patch4
1 files changed, 2 insertions, 2 deletions
diff --git a/toolchain/musl/patches/110-read_timezone_from_fs.patch b/toolchain/musl/patches/110-read_timezone_from_fs.patch
index 3ff63ac220..b4349e7367 100644
--- a/toolchain/musl/patches/110-read_timezone_from_fs.patch
+++ b/toolchain/musl/patches/110-read_timezone_from_fs.patch
@@ -23,6 +23,6 @@
+ s = tzfile = (void *)__map_file("/etc/TZ", &tzfile_size);
+ }
+
- if (!s || !*s) s = "/etc/localtime";
+ if (!s) s = "/etc/localtime";
+ if (!*s) s = __gmt;
- if (old_tz && !strcmp(s, old_tz)) return;