diff options
author | Peter Williams <peterw@src.gnome.org> | 2000-06-27 23:04:15 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2000-06-27 23:04:15 +0800 |
commit | 9135a5d0e44b1f2fc77beb7b09584be861f18e76 (patch) | |
tree | 6a2a7aa6e08158dff274123ccc9a854ac99416ab /mail | |
parent | db8314acf59a18c1a26b0a6c86a5a28261ef7392 (diff) | |
download | gsoc2013-evolution-9135a5d0e44b1f2fc77beb7b09584be861f18e76.tar gsoc2013-evolution-9135a5d0e44b1f2fc77beb7b09584be861f18e76.tar.gz gsoc2013-evolution-9135a5d0e44b1f2fc77beb7b09584be861f18e76.tar.bz2 gsoc2013-evolution-9135a5d0e44b1f2fc77beb7b09584be861f18e76.tar.lz gsoc2013-evolution-9135a5d0e44b1f2fc77beb7b09584be861f18e76.tar.xz gsoc2013-evolution-9135a5d0e44b1f2fc77beb7b09584be861f18e76.tar.zst gsoc2013-evolution-9135a5d0e44b1f2fc77beb7b09584be861f18e76.zip |
Solaris compatibility config check + implementation (ctime_r arguments)
svn path=/trunk/; revision=3754
Diffstat (limited to 'mail')
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/message-list.c | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 75e59f4ca8..a9eaf38b88 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2000-06-27 Peter Williams <peterw@curious-george.helixcode.com> + + * message-list.c (filter_date): Solve the ctime_r problem the + correct way, with the magic of autoconf. + 2000-06-27 Christopher James Lahey <clahey@helixcode.com> * message-list.c: Work around mismatched ctime_r functions. This 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'; |