add struct tm definition and fix build error

This commit is contained in:
Vincent Sanders 2014-05-13 16:46:48 +01:00
parent 1a3ee6090d
commit 6532346277
2 changed files with 2 additions and 1 deletions

View File

@ -41,6 +41,7 @@ char *strcasestr(const char *haystack, const char *needle);
#if (defined(riscos) || defined(_WIN32))
#undef HAVE_STRPTIME
#define strptime nsc_time_strptime
struct tm;
char *nsc_time_strptime(const char *s, const char *format, struct tm *tm);
#else
#define HAVE_STRPTIME

View File

@ -576,7 +576,7 @@ char *nsc_time_strptime(const char *s, const char *format, struct tm *tm)
char *endptr;
if ((format[0] != '%') || (format[1] != 's')) {
return NULL
return NULL;
}
esecs = (time_t)strtoll(a, &endptr, 10);