--- include/imapproxy.h	Tue Apr 20 23:55:23 2004
+++ include/imapproxy.h	Sun Dec 10 11:28:42 2006
@@ -107,6 +107,7 @@
 
 #if HAVE_LIBSSL
 #include <openssl/ssl.h>
+#include <openssl/md5.h>
 #include <openssl/rand.h>
 #include <limits.h>
 #endif
--- config.h.in	Tue Apr 20 10:26:46 2004
+++ config.h.in	Sun Dec 10 11:27:13 2006
@@ -27,7 +27,7 @@
 #undef HAVE_LIBSOCKET
 
 /* Define to 1 if you have the `ssl' library (-lssl). */
-#undef HAVE_LIBSSL
+#define HAVE_LIBSSL 1
 
 /* Define to 1 if you have the <memory.h> header file. */
 #undef HAVE_MEMORY_H
--- src/threads.c	2008-01-28 14:15:08.000000000 +0100
+++ src/threads.c	2008-02-25 13:50:40.000000000 +0100
@@ -51,7 +51,10 @@
 
 #define OPENSSL_THREAD_DEFINES
 #include <openssl/opensslconf.h>
-#if defined(OPENSSL_THREADS)
+#if defined(THREADS)
+#define OPENSSL_THREADS
+#endif
+#if defined(OPENSSL_THREADS)

 
 #include <stdio.h>
