diff options
author | CyberLeo <cyberleo@cyberleo.net> | 2020-03-28 05:45:52 -0500 |
---|---|---|
committer | CyberLeo <cyberleo@cyberleo.net> | 2020-03-28 05:45:52 -0500 |
commit | 9297468fa579836e3a6a381b798feb6b78217c2d (patch) | |
tree | 53168212f427afbcf0693b534530a4af803152e9 /system/cvs/time64-hack.patch | |
parent | a63cc05c53a6f4c22422dc8c69808b14d87a6f6e (diff) | |
parent | da5a69b65a8791fffa6e93366ee585f87eff136d (diff) | |
download | packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.gz packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.bz2 packages-9297468fa579836e3a6a381b798feb6b78217c2d.tar.xz packages-9297468fa579836e3a6a381b798feb6b78217c2d.zip |
Merge branch 'master' into zfs
Diffstat (limited to 'system/cvs/time64-hack.patch')
-rw-r--r-- | system/cvs/time64-hack.patch | 18 |
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. */ |