pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/34720: Error in building editors/dasher
The following reply was made to PR pkg/34720; it has been noted by GNATS.
From: Roland Illig <rillig%NetBSD.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc:
Subject: Re: pkg/34720: Error in building editors/dasher
Date: Thu, 05 Oct 2006 14:43:26 +0200
This is a multi-part message in MIME format.
--------------000704090605060508070807
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
michael.grunditz%telia.com@localhost wrote:
> FileLogger.cpp:514: error: cannot convert 'long int*' to 'const time_t*' for
> argument '1' to 'char* ctime(const time_t*)'
Please copy the appended patch to editors/dasher/patches/, run "make
mps" and try again.
Roland
--------------000704090605060508070807
Content-Type: text/plain;
name="patch-aa"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="patch-aa"
$NetBSD$
--- Src/DasherCore/FileLogger.cpp.orig 2006-09-03 21:45:06.000000000 +0200
+++ Src/DasherCore/FileLogger.cpp 2006-10-05 14:29:40.000000000 +0200
@@ -503,6 +503,7 @@ std::string CFileLogger::GetTimeDateStam
#else
struct timeval sTimeBuffer;
struct timezone sTimezoneBuffer;
+ time_t t;
#endif
char* szTimeLine = NULL;
@@ -511,7 +512,8 @@ std::string CFileLogger::GetTimeDateStam
szTimeLine = ctime(&(sTimeBuffer.time));
#else
gettimeofday(&sTimeBuffer, &sTimezoneBuffer);
- szTimeLine = ctime(&(sTimeBuffer.tv_sec));
+ t = sTimeBuffer.tv_sec;
+ szTimeLine = ctime(&t);
#endif
// Format is:
--------------000704090605060508070807--
Home |
Main Index |
Thread Index |
Old Index