FreeBSD Bugzilla – Attachment 102186 Details for
Bug 141917
[PATCH] deskutils/fbreader: Fix build on i386
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
fbreader-0.12.1_1.patch
fbreader-0.12.1_1.patch (text/plain), 1.94 KB, created by
Yuri Pankov
on 2009-12-23 09:10:01 UTC
(
hide
)
Description:
fbreader-0.12.1_1.patch
Filename:
MIME Type:
Creator:
Yuri Pankov
Created:
2009-12-23 09:10:01 UTC
Size:
1.94 KB
patch
obsolete
>Index: Makefile >=================================================================== >RCS file: /home/ncvs/ports/deskutils/fbreader/Makefile,v >retrieving revision 1.36 >diff -u -r1.36 Makefile >--- Makefile 23 Dec 2009 00:38:18 -0000 1.36 >+++ Makefile 23 Dec 2009 09:01:47 -0000 >@@ -8,6 +8,7 @@ > PORTNAME= fbreader > PORTVERSION= 0.12.1 > DISTVERSIONPREFIX= sources- >+PORTREVISION= 1 > CATEGORIES= deskutils > MASTER_SITES= http://www.fbreader.org/ > EXTRACT_SUFX= .tgz >Index: files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp >=================================================================== >RCS file: /home/ncvs/ports/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp,v >retrieving revision 1.5 >diff -u -r1.5 patch-zlibrary__src__unix__time__ZLUnixTime.cpp >--- files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp 18 Jul 2007 10:15:15 -0000 1.5 >+++ files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp 23 Dec 2009 09:01:47 -0000 >@@ -1,6 +1,6 @@ >---- ./zlibrary/core/src/unix/time/ZLUnixTime.cpp.orig Tue Apr 17 22:53:30 2007 >-+++ ./zlibrary/core/src/unix/time/ZLUnixTime.cpp Sat Apr 28 00:13:29 2007 >-@@ -18,21 +18,22 @@ >+--- ./zlibrary/core/src/unix/time/ZLUnixTime.cpp.orig 2009-12-13 11:03:09.000000000 +0300 >++++ ./zlibrary/core/src/unix/time/ZLUnixTime.cpp 2009-12-23 09:34:03.273539781 +0300 >+@@ -17,33 +17,37 @@ > * 02110-1301, USA. > */ > >@@ -30,3 +30,21 @@ > + time_t st = seconds; > + return localtime(&st)->tm_min; > } >+ >+ short ZLUnixTimeManager::yearBySeconds(long seconds) const { >+- return localtime(&seconds)->tm_year + 1900; >++ time_t st = seconds; >++ return localtime(&st)->tm_year + 1900; >+ } >+ >+ short ZLUnixTimeManager::monthBySeconds(long seconds) const { >+- return localtime(&seconds)->tm_mon + 1; >++ time_t st = seconds; >++ return localtime(&st)->tm_mon + 1; >+ } >+ >+ short ZLUnixTimeManager::dayOfMonthBySeconds(long seconds) const { >+- return localtime(&seconds)->tm_mday; >++ time_t st = seconds; >++ return localtime(&st)->tm_mday; >+ }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 141917
: 102186