1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-19 03:52:17 +00:00
freebsd-ports/sysutils/lnav/files/patch-src_logfile.cc
Wen Heping 30f776261b - Update to lnav 0.8.2
- Add optional dependency on libcurl
- Fix crash on i386
- Add USES=compiler:c++14-lang
- Remove USES=python

PR:		219477
Submitted by:	tom@hur.st(maintainer)
2017-06-14 07:48:44 +00:00

17 lines
620 B
C++

--- src/logfile.cc.orig 2017-05-23 18:53:47 UTC
+++ src/logfile.cc
@@ -92,10 +92,10 @@ throw (error)
loo.loo_fd.close_on_exec();
- log_info("Creating logfile: fd=%d; size=%d; mtime=%d; filename=%s",
+ log_info("Creating logfile: fd=%d; size=%" PRId64 "; mtime=%" PRId64 "; filename=%s",
(int) loo.loo_fd,
- this->lf_stat.st_size,
- this->lf_stat.st_mtime,
+ (long long) this->lf_stat.st_size,
+ (long long) this->lf_stat.st_mtime,
filename.c_str());
this->lf_valid_filename = true;