diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2018-05-03 18:23:08 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-05-03 18:25:26 +0000 |
commit | f8369be0c2fb7941156cf6f5a1143c5f91c5eb1a (patch) | |
tree | 8a0784e2007c551d83b01ee34e5a38ef059f84a8 /testing/snapper/musl-__isleap.patch | |
parent | 45b5690ccb0ec88c2742a5b3078b60655923d268 (diff) | |
download | aports-f8369be0c2fb7941156cf6f5a1143c5f91c5eb1a.tar.bz2 aports-f8369be0c2fb7941156cf6f5a1143c5f91c5eb1a.tar.xz |
testing/snapper: new aport
Diffstat (limited to 'testing/snapper/musl-__isleap.patch')
-rw-r--r-- | testing/snapper/musl-__isleap.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/snapper/musl-__isleap.patch b/testing/snapper/musl-__isleap.patch new file mode 100644 index 0000000000..5997247cf1 --- /dev/null +++ b/testing/snapper/musl-__isleap.patch @@ -0,0 +1,19 @@ +The macro __isleap() is defined in glibc's time.h +If it is not defined, define it the same (for musl libc). + +--- a/client/utils/equal-date.h 2014-12-11 18:21:17.000000000 +0100 ++++ b/client/utils/equal-date.h 2015-08-30 11:18:08.181207315 +0200 +@@ -19,6 +19,13 @@ + * find current contact information at www.novell.com. + */ + ++#if !defined(__isleap) ++/* Nonzero if YEAR is a leap year (every 4 years, ++ except every 100th isn't, and every 400th is). */ ++# define __isleap(year) \ ++ ((year) % 4 == 0 && ((year) % 100 != 0 || (year) % 400 == 0)) ++#endif ++ + + bool + equal_year(const struct tm& tmp1, const struct tm& tmp2); |