summaryrefslogtreecommitdiff
path: root/system/cvs/time64-hack.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-22 23:15:00 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-22 23:15:00 +0000
commit4d0d1831c34e2d121896d66302ac44463180e36e (patch)
tree181df72574d315429aa14cecbcf89cb3eacacb64 /system/cvs/time64-hack.patch
parentd528964b0697a8dc8148d4a55c7dd1021ef2ee99 (diff)
downloadpackages-4d0d1831c34e2d121896d66302ac44463180e36e.tar.gz
packages-4d0d1831c34e2d121896d66302ac44463180e36e.tar.bz2
packages-4d0d1831c34e2d121896d66302ac44463180e36e.tar.xz
packages-4d0d1831c34e2d121896d66302ac44463180e36e.zip
system/cvs: add depressingly sad and feeble patch to force time64 build
Diffstat (limited to 'system/cvs/time64-hack.patch')
-rw-r--r--system/cvs/time64-hack.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/system/cvs/time64-hack.patch b/system/cvs/time64-hack.patch
new file mode 100644
index 000000000..70ad8f54f
--- /dev/null
+++ b/system/cvs/time64-hack.patch
@@ -0,0 +1,18 @@
+This is a terrible kludge to force CVS to build on 32-bit machines with time64.
+
+We really need to figure out a way to bring one of the BSD forks of CVS in so
+that we can have a better, safer way to handle this before Y2038.
+
+--- cvs-1.12.13/lib/mktime.c.old 2005-09-19 16:16:56.000000000 +0000
++++ cvs-1.12.13/lib/mktime.c 2019-12-22 22:59:47.409697542 +0000
+@@ -167,8 +167,8 @@
+ int year0, int yday0, int hour0, int min0, int sec0)
+ {
+ verify (C99_integer_division, -1 / 2 == 0);
+- verify (long_int_year_and_yday_are_wide_enough,
+- INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX);
++ /*verify (long_int_year_and_yday_are_wide_enough,
++ INT_MAX <= LONG_MAX / 2 || TIME_T_MAX <= UINT_MAX);*/
+
+ /* Compute intervening leap days correctly even if year is negative.
+ Take care to avoid integer overflow here. */