summaryrefslogtreecommitdiff
path: root/editors/dasher/patches/patch-ac
diff options
context:
space:
mode:
Diffstat (limited to 'editors/dasher/patches/patch-ac')
-rw-r--r--editors/dasher/patches/patch-ac22
1 files changed, 22 insertions, 0 deletions
diff --git a/editors/dasher/patches/patch-ac b/editors/dasher/patches/patch-ac
new file mode 100644
index 00000000000..23928f7ae23
--- /dev/null
+++ b/editors/dasher/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.3 2007/04/18 23:19:27 wiz Exp $
+
+--- Src/DasherCore/BasicLog.cpp.orig 2007-04-16 16:06:42.000000000 +0200
++++ Src/DasherCore/BasicLog.cpp
+@@ -79,6 +79,7 @@ std::string CBasicLog::GetDateStamp() {
+ #else
+ struct timeval sTimeBuffer;
+ struct timezone sTimezoneBuffer;
++ time_t help; /* workaround for bad NetBSD struct timeval */
+ #endif
+ char* szTimeLine = NULL;
+
+@@ -87,7 +88,8 @@ std::string CBasicLog::GetDateStamp() {
+ szTimeLine = ctime(&(sTimeBuffer.time));
+ #else
+ gettimeofday(&sTimeBuffer, &sTimezoneBuffer);
+- szTimeLine = ctime(&(sTimeBuffer.tv_sec));
++ help = sTimeBuffer.tv_sec;
++ szTimeLine = ctime(&help);
+ #endif
+
+ return std::string(szTimeLine).substr(0, 24);