mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
- Fix build on i386
PR: 141917 Submitted by: Yuri Pankov Approved by: miwi (mentor)
This commit is contained in:
parent
60bd30c1ed
commit
9fc3bb8021
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246503
@ -7,6 +7,7 @@
|
||||
|
||||
PORTNAME= fbreader
|
||||
PORTVERSION= 0.12.1
|
||||
PORTREVISION= 1
|
||||
DISTVERSIONPREFIX= sources-
|
||||
CATEGORIES= deskutils
|
||||
MASTER_SITES= http://www.fbreader.org/
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user