diff options
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 8c349aa1a1..cd66d3080e 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -540,8 +540,6 @@ message_list_init_images (void) } } -typedef char *(*ctime_r_prototype) (const time_t *clock, ...); - static char * filter_date (const void *data) { @@ -551,7 +549,12 @@ filter_date (const void *data) if (date == 0) return g_strdup ("?"); - ((ctime_r_prototype) ctime_r) (&date, buf, 26); +#ifdef CTIME_R_THREE_ARGS + ctime_r (&date, buf, 26); +#else + ctime_r (&date, buf); +#endif + p = strchr (buf, '\n'); if (p) *p = '\0'; |