aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2011-11-01 06:42:52 +0800
committerehaupt <ehaupt@FreeBSD.org>2011-11-01 06:42:52 +0800
commit7b7a8ec0b7dda99f9f5f8f3d494bfd612e20f690 (patch)
tree968b3b20343f9d03b1a428643cbd6219fe987a89
parent35f825dfd8cd142abd804466b4bb5128300a1a85 (diff)
downloadfreebsd-ports-gnome-7b7a8ec0b7dda99f9f5f8f3d494bfd612e20f690.tar.gz
freebsd-ports-gnome-7b7a8ec0b7dda99f9f5f8f3d494bfd612e20f690.tar.zst
freebsd-ports-gnome-7b7a8ec0b7dda99f9f5f8f3d494bfd612e20f690.zip
Fix build on i386 by using time_t instead of long for a timestamp.
Notified by: pointyhat (via erwin)
-rw-r--r--sysutils/logstalgia/Makefile1
-rw-r--r--sysutils/logstalgia/files/patch-src__logentry.h11
-rw-r--r--sysutils/logstalgia/files/patch-src__logstalgia.cpp11
3 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/logstalgia/Makefile b/sysutils/logstalgia/Makefile
index 8eb29ebf5aa3..6b8aa21ef891 100644
--- a/sysutils/logstalgia/Makefile
+++ b/sysutils/logstalgia/Makefile
@@ -7,6 +7,7 @@
PORTNAME= logstalgia
PORTVERSION= 1.0.3
+PORTREVISION= 1
CATEGORIES= sysutils www
MASTER_SITES= GOOGLE_CODE CRITICAL
diff --git a/sysutils/logstalgia/files/patch-src__logentry.h b/sysutils/logstalgia/files/patch-src__logentry.h
new file mode 100644
index 000000000000..8f98dcc2b9e8
--- /dev/null
+++ b/sysutils/logstalgia/files/patch-src__logentry.h
@@ -0,0 +1,11 @@
+--- ./src/logentry.h.orig 2011-02-16 00:52:06.000000000 +0100
++++ ./src/logentry.h 2011-10-31 23:20:56.000000000 +0100
+@@ -41,7 +41,7 @@
+ void setSuccess();
+ void setResponseColour();
+
+- long timestamp;
++ time_t timestamp;
+
+ std::string hostname;
+ std::string vhost;
diff --git a/sysutils/logstalgia/files/patch-src__logstalgia.cpp b/sysutils/logstalgia/files/patch-src__logstalgia.cpp
new file mode 100644
index 000000000000..7edccfef2faf
--- /dev/null
+++ b/sysutils/logstalgia/files/patch-src__logstalgia.cpp
@@ -0,0 +1,11 @@
+--- ./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);