aboutsummaryrefslogtreecommitdiffstats
path: root/testing/snapper/musl-mktime.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2018-05-03 18:23:08 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2018-05-03 18:25:26 +0000
commitf8369be0c2fb7941156cf6f5a1143c5f91c5eb1a (patch)
tree8a0784e2007c551d83b01ee34e5a38ef059f84a8 /testing/snapper/musl-mktime.patch
parent45b5690ccb0ec88c2742a5b3078b60655923d268 (diff)
downloadaports-f8369be0c2fb7941156cf6f5a1143c5f91c5eb1a.tar.bz2
aports-f8369be0c2fb7941156cf6f5a1143c5f91c5eb1a.tar.xz
testing/snapper: new aport
Diffstat (limited to 'testing/snapper/musl-mktime.patch')
-rw-r--r--testing/snapper/musl-mktime.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/snapper/musl-mktime.patch b/testing/snapper/musl-mktime.patch
new file mode 100644
index 0000000000..48fbc0802e
--- /dev/null
+++ b/testing/snapper/musl-mktime.patch
@@ -0,0 +1,15 @@
+According to http://ftp.gnu.org/old-gnu/Manuals/glibc-2.2.3/html_chapter/libc_21.html
+timelocal(2) is functionally identical to mktime(2), but more
+mnemonically named. There is no timelocal(2) defined in musl libc.
+
+--- a/snapper/AppUtil.cc 2015-02-18 18:54:03.000000000 +0100
++++ b/snapper/AppUtil.cc 2015-08-30 10:39:31.318158599 +0200
+@@ -274,7 +274,7 @@
+ const char* p = strptime(str.c_str(), "%F %T", &s);
+ if (!p || *p != '\0')
+ return (time_t)(-1);
+- return utc ? timegm(&s) : timelocal(&s);
++ return utc ? timegm(&s) : mktime(&s);
+ }
+
+