From 11d1a5ca6dc0c53d71efd010fb15c7e881a7a997 Mon Sep 17 00:00:00 2001 From: Michael Zillgith Date: Thu, 21 Nov 2019 11:55:53 +0100 Subject: [PATCH] fixed problem in time conversion for mingw --- src/common/conversions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/conversions.c b/src/common/conversions.c index 0191d4c3..7268c972 100644 --- a/src/common/conversions.c +++ b/src/common/conversions.c @@ -65,7 +65,7 @@ days_from_civil(int y, int m, int d) /* from https://stackoverflow.com/questions/16647819/timegm-cross-platform */ time_t -timegm(tm const* t) /* does not modify broken-down time */ +timegm(struct tm const* t) /* does not modify broken-down time */ { int year = t->tm_year + 1900; int month = t->tm_mon; /* 0-11 */