From: Timo Sirainen Date: Tue, 8 Dec 2009 21:32:49 +0000 (-0500) Subject: Fixed my_strptime() wrapper. X-Git-Tag: 2.0.beta1~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=249259a07b0e4efe7fcbf27c3a85a51f35a803b2;p=thirdparty%2Fdovecot%2Fcore.git Fixed my_strptime() wrapper. --HG-- branch : HEAD --- diff --git a/src/lib/compat.c b/src/lib/compat.c index 75ec839a33..0c9cc3f7ea 100644 --- a/src/lib/compat.c +++ b/src/lib/compat.c @@ -8,6 +8,7 @@ #ifdef PREAD_WRAPPERS # define _XOPEN_SOURCE 500 /* Linux */ #endif +#include /* 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, struct timespec *tp) } #endif +#undef strptime char *my_strptime(const char *s, const char *format, struct tm *tm) { return strptime(s, format, tm);