]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Fixed my_strptime() wrapper.
authorTimo Sirainen <tss@iki.fi>
Tue, 8 Dec 2009 21:32:49 +0000 (16:32 -0500)
committerTimo Sirainen <tss@iki.fi>
Tue, 8 Dec 2009 21:32:49 +0000 (16:32 -0500)
--HG--
branch : HEAD

src/lib/compat.c

index 75ec839a3320993dfa837f8a3c68bad2b7eaea8c..0c9cc3f7eadedfa6420a5fa9519a8bf58cfca5d4 100644 (file)
@@ -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, struct timespec *tp)
 }
 #endif
 
+#undef strptime
 char *my_strptime(const char *s, const char *format, struct tm *tm)
 {
        return strptime(s, format, tm);