freebsd-ports/sysutils/logstalgia/files/patch-src__logstalgia.cpp
Emanuel Haupt 2d7512a8a1 Fix build on i386 by using time_t instead of long for a timestamp.
Notified by:	pointyhat (via erwin)
2011-10-31 22:42:52 +00:00

11 lines
431 B
C++

--- ./src/logstalgia.cpp.orig 2011-10-31 23:21:18.000000000 +0100
+++ ./src/logstalgia.cpp 2011-10-31 23:21:35.000000000 +0100
@@ -392,7 +392,7 @@
//display date
char datestr[256];
- long timestamp = le.timestamp;
+ time_t timestamp = le.timestamp;
struct tm* timeinfo = localtime ( &timestamp );
strftime(datestr, 256, "%H:%M:%S %B %d, %Y", timeinfo);