diff options
Diffstat (limited to 'deskutils/fbreader')
-rw-r--r-- | deskutils/fbreader/Makefile | 1 | ||||
-rw-r--r-- | deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp | 24 |
2 files changed, 22 insertions, 3 deletions
diff --git a/deskutils/fbreader/Makefile b/deskutils/fbreader/Makefile index dc625839d4db..1093c7d00ac1 100644 --- a/deskutils/fbreader/Makefile +++ b/deskutils/fbreader/Makefile @@ -7,6 +7,7 @@ PORTNAME= fbreader PORTVERSION= 0.12.1 +PORTREVISION= 1 DISTVERSIONPREFIX= sources- CATEGORIES= deskutils MASTER_SITES= http://www.fbreader.org/ diff --git a/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp b/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp index 5acfa049e9a6..1ea6e2a4ec9b 100644 --- a/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp +++ b/deskutils/fbreader/files/patch-zlibrary__src__unix__time__ZLUnixTime.cpp @@ -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; + } |