- Fix build on RELENG_5.
Reported by: krismail, Thomas Kempka <t.kempka@web.de>
This commit is contained in:
parent
29f2cacafd
commit
f222a95b8e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133821
2 changed files with 22 additions and 0 deletions
11
net-p2p/rtorrent/files/patch-src_display_utils.cc
Normal file
11
net-p2p/rtorrent/files/patch-src_display_utils.cc
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/display/utils.cc.orig
|
||||
+++ src/display/utils.cc
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
std::string
|
||||
print_hhmmss(utils::Timer t) {
|
||||
- std::tm *u = std::localtime(&(time_t)t.tval().tv_sec);
|
||||
+ std::tm *u = std::localtime((const time_t *)&t.tval().tv_sec);
|
||||
|
||||
if (u == NULL)
|
||||
return "inv_time";
|
11
net/rtorrent/files/patch-src_display_utils.cc
Normal file
11
net/rtorrent/files/patch-src_display_utils.cc
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- src/display/utils.cc.orig
|
||||
+++ src/display/utils.cc
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
std::string
|
||||
print_hhmmss(utils::Timer t) {
|
||||
- std::tm *u = std::localtime(&(time_t)t.tval().tv_sec);
|
||||
+ std::tm *u = std::localtime((const time_t *)&t.tval().tv_sec);
|
||||
|
||||
if (u == NULL)
|
||||
return "inv_time";
|
Loading…
Reference in a new issue