compat: remove 'const' from the prototype of timegm().

The prototype of timegm() does not have 'const'.

This fixes compilation on OS/2 which have only a declaration of
timegm().

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
This commit is contained in:
KO Myung-Hun 2015-12-12 12:09:13 +09:00 committed by Rémi Denis-Courmont
parent 043a2deb40
commit ed7287c042
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ static bool is_leap_year(unsigned y)
return true;
}
time_t timegm(const struct tm *tm)
time_t timegm(struct tm *tm)
{
static const unsigned ydays[12 + 1] = {
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334

View File

@ -200,7 +200,7 @@ struct tm *localtime_r (const time_t *, struct tm *);
#endif
#ifndef HAVE_TIMEGM
time_t timegm(const struct tm *);
time_t timegm(struct tm *);
#endif
#ifndef HAVE_TIMESPEC_GET