]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
Removed my_strptime().
authorTimo Sirainen <tss@iki.fi>
Sun, 24 Jan 2010 23:02:27 +0000 (01:02 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 24 Jan 2010 23:02:27 +0000 (01:02 +0200)
It was just causing problems and wasn't used anywhere after all.

--HG--
branch : HEAD

src/lib/compat.c
src/lib/compat.h

index 0c9cc3f7eadedfa6420a5fa9519a8bf58cfca5d4..a1369cd69f49691ffd2bd4422b14314428be0e72 100644 (file)
@@ -8,7 +8,6 @@
 #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,9 +308,3 @@ int i_my_clock_gettime(int clk_id, struct timespec *tp)
        return 0;
 }
 #endif
-
-#undef strptime
-char *my_strptime(const char *s, const char *format, struct tm *tm)
-{
-       return strptime(s, format, tm);
-}
index 6e47c73a2a1c0313bd0d533c68c52bd7eb8dee3d..7623b109c6f15654123a6564d1feff9a8d00dc8a 100644 (file)
@@ -207,12 +207,6 @@ int i_my_vsnprintf(char *str, size_t size, const char *format, va_list ap);
 int i_my_clock_gettime(int clk_id, struct timespec *tp);
 #endif
 
-/* glibc wants _XOPEN_SOURCE defined for strptime(), but doing that breaks
-   other things. So we'll create this wrapper to work around the problems. */
-#define strptime my_strptime
-struct tm;
-char *my_strptime(const char *s, const char *format, struct tm *tm);
-
 /* ctype.h isn't safe with signed chars,
    use our own instead if really needed */
 #define i_toupper(x) ((char) toupper((int) (unsigned char) (x)))