diff options
-rw-r--r-- | devel/cvstrac/Makefile | 2 | ||||
-rw-r--r-- | devel/cvstrac/files/patch-history.c | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/devel/cvstrac/Makefile b/devel/cvstrac/Makefile index 05b4e59c6c6..50d516fdfcd 100644 --- a/devel/cvstrac/Makefile +++ b/devel/cvstrac/Makefile @@ -7,7 +7,7 @@ PORTNAME= cvstrac PORTVERSION= 1.1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= devel MASTER_SITES= ftp://ftp.cvstrac.org/cvstrac/ diff --git a/devel/cvstrac/files/patch-history.c b/devel/cvstrac/files/patch-history.c new file mode 100644 index 00000000000..73cc6bc41c2 --- /dev/null +++ b/devel/cvstrac/files/patch-history.c @@ -0,0 +1,11 @@ +--- history.c 5 Apr 2003 16:04:21 -0000 1.28 ++++ history.c 28 Mar 2004 21:01:11 -0000 +@@ -155,7 +155,7 @@ + p->tm_year += p->tm_mon/12; + p->tm_mon %= 12; + } +- isLeapYr = p->tm_year/4==0 && (p->tm_year/100!=0 || (p->tm_year+300)/400==0); ++ isLeapYr = p->tm_year%4==0 && (p->tm_year%100!=0 || p->tm_year%400==0); + p->tm_yday = priorDays[p->tm_mon] + p->tm_mday - 1; + if( isLeapYr && p->tm_mon>1 ) p->tm_yday++; + nDay = (p->tm_year-70)*365 + (p->tm_year-69)/4 -p->tm_year/100 + |