From 4ccbb71ccf6b079fea6bc3bd1b99953d4b530241 Mon Sep 17 00:00:00 2001 From: Patrick von Reth Date: Sat, 17 May 2014 15:29:05 +0200 Subject: [PATCH] Fixed build with mingw _localtime32 was removed from the runtime because it was only avalible at some Windows versions. Maybe the time_t* cast could be used on all systems? --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index f72b38315..156c0bead 100644 --- a/util.c +++ b/util.c @@ -74,7 +74,7 @@ log_prefix(bool log_updated_time) if (log_updated_time) { gettimeofday(&tv, NULL); #ifdef __MINGW64_VERSION_MAJOR - tm = _localtime32(&tv.tv_sec); + tm = localtime((time_t*)&tv.tv_sec); #else tm = localtime(&tv.tv_sec); #endif -- 2.47.2