dovecot-2.0: Fixed my_strptime() wrapper.

dovecot at dovecot.org dovecot at dovecot.org
Tue Dec 8 23:32:56 EET 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/2f294ba2168a
changeset: 10432:2f294ba2168a
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Dec 08 16:32:49 2009 -0500
description:
Fixed my_strptime() wrapper.

diffstat:

1 file changed, 2 insertions(+)
src/lib/compat.c |    2 ++

diffs (19 lines):

diff -r 32aba99c2e4f -r 2f294ba2168a src/lib/compat.c
--- a/src/lib/compat.c	Tue Dec 08 15:19:31 2009 -0500
+++ b/src/lib/compat.c	Tue Dec 08 16:32:49 2009 -0500
@@ -8,6 +8,7 @@
 #ifdef PREAD_WRAPPERS
 #  define _XOPEN_SOURCE 500 /* Linux */
 #endif
+#include <time.h> /* strptime() is giving trouble if this is moved below.. */
 
 #define IN_COMPAT_C
 #include "lib.h"
@@ -309,6 +310,7 @@ int i_my_clock_gettime(int clk_id, struc
 }
 #endif
 
+#undef strptime
 char *my_strptime(const char *s, const char *format, struct tm *tm)
 {
 	return strptime(s, format, tm);


More information about the dovecot-cvs mailing list