git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@922 77e5149b-7576-45b1-b177-96237e5ba77b
Nigel Horne authored on 2004/09/23 01:12:08... | ... |
@@ -1,3 +1,8 @@ |
1 |
+Wed Sep 22 17:11:23 BST 2004 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/mbox.c: Build if libcurl doesn't support |
|
4 |
+ CURLOPT_DNS_USE_GLOBAL_CACHE |
|
5 |
+ |
|
1 | 6 |
Wed Sep 22 16:58:05 BST 2004 (trog) |
2 | 7 |
----------------------------------- |
3 | 8 |
* libclamav/htmlnorm.c: fix possible crash with broken html |
... | ... |
@@ -17,6 +17,9 @@ |
17 | 17 |
* |
18 | 18 |
* Change History: |
19 | 19 |
* $Log: mbox.c,v $ |
20 |
+ * Revision 1.140 2004/09/22 16:09:51 nigelhorne |
|
21 |
+ * Build if CURLOPT_DNS_USE_GLOBAL_CACHE isn't supported |
|
22 |
+ * |
|
20 | 23 |
* Revision 1.139 2004/09/22 15:49:13 nigelhorne |
21 | 24 |
* Handle RFC2298 messages |
22 | 25 |
* |
... | ... |
@@ -405,7 +408,7 @@ |
405 | 405 |
* Compilable under SCO; removed duplicate code with message.c |
406 | 406 |
* |
407 | 407 |
*/ |
408 |
-static char const rcsid[] = "$Id: mbox.c,v 1.139 2004/09/22 15:49:13 nigelhorne Exp $"; |
|
408 |
+static char const rcsid[] = "$Id: mbox.c,v 1.140 2004/09/22 16:09:51 nigelhorne Exp $"; |
|
409 | 409 |
|
410 | 410 |
#if HAVE_CONFIG_H |
411 | 411 |
#include "clamav-config.h" |
... | ... |
@@ -2744,8 +2747,10 @@ getURL(struct arg *arg) |
2744 | 2744 |
#endif |
2745 | 2745 |
|
2746 | 2746 |
#ifdef CL_THREAD_SAFE |
2747 |
+#ifdef CURLOPT_DNS_USE_GLOBAL_CACHE |
|
2747 | 2748 |
curl_easy_setopt(curl, CURLOPT_DNS_USE_GLOBAL_CACHE, 0); |
2748 | 2749 |
#endif |
2750 |
+#endif |
|
2749 | 2751 |
|
2750 | 2752 |
/* |
2751 | 2753 |
* Prevent password: prompting with older versions |