$NetBSD: patch-ad,v 1.2 2007/11/05 20:01:00 drochner Exp $ --- Src/DasherCore/FileLogger.cpp.orig 2007-10-15 15:55:01.000000000 +0200 +++ Src/DasherCore/FileLogger.cpp @@ -503,6 +503,7 @@ std::string CFileLogger::GetTimeDateStam #else struct timeval sTimeBuffer; struct timezone sTimezoneBuffer; + time_t help; /* workaround for bad NetBSD struct timeval */ #endif char* szTimeLine = NULL; @@ -511,7 +512,8 @@ std::string CFileLogger::GetTimeDateStam szTimeLine = ctime(&(sTimeBuffer.time)); #else gettimeofday(&sTimeBuffer, &sTimezoneBuffer); - szTimeLine = ctime((const time_t *)&(sTimeBuffer.tv_sec)); + help = sTimeBuffer.tv_sec; + szTimeLine = ctime(&help); #endif // Format is: