Browse code

No longer needs curl.h

git-svn-id: file:///var/lib/svn/clamav-devel/trunk/clamav-devel@743 77e5149b-7576-45b1-b177-96237e5ba77b

Nigel Horne authored on 2004/08/12 00:29:48
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Wed Aug 11 16:29:05 BST 2004 (njh)
2
+----------------------------------
3
+  * libclamav/mbox.c:	No longer needs curl.h to compile (thanks to TK)
4
+
1 5
 Wed Aug 11 15:46:56 BST 2004 (njh)
2 6
 ----------------------------------
3 7
   * libclamav/mbox.c:	Better handling of false positive emails, that is
... ...
@@ -17,6 +17,9 @@
17 17
  *
18 18
  * Change History:
19 19
  * $Log: mbox.c,v $
20
+ * Revision 1.99  2004/08/11 15:28:39  nigelhorne
21
+ * No longer needs curl.h
22
+ *
20 23
  * Revision 1.98  2004/08/11 14:46:22  nigelhorne
21 24
  * Better handling of false positive emails
22 25
  *
... ...
@@ -282,7 +285,7 @@
282 282
  * Compilable under SCO; removed duplicate code with message.c
283 283
  *
284 284
  */
285
-static	char	const	rcsid[] = "$Id: mbox.c,v 1.98 2004/08/11 14:46:22 nigelhorne Exp $";
285
+static	char	const	rcsid[] = "$Id: mbox.c,v 1.99 2004/08/11 15:28:39 nigelhorne Exp $";
286 286
 
287 287
 #if HAVE_CONFIG_H
288 288
 #include "clamav-config.h"
... ...
@@ -313,8 +316,6 @@ static	char	const	rcsid[] = "$Id: mbox.c,v 1.98 2004/08/11 14:46:22 nigelhorne E
313 313
 #include <sys/param.h>
314 314
 #include <clamav.h>
315 315
 
316
-#include <curl/curl.h>
317
-
318 316
 #ifdef	CL_THREAD_SAFE
319 317
 #include <pthread.h>
320 318
 #endif
... ...
@@ -361,6 +362,10 @@ static	void	print_trace(int use_syslog);
361 361
 /*#define	CHECKURLS	/* If an email contains URLs, check them */
362 362
 /*#define	LIBCURL	/* Needs support from "configure" */
363 363
 
364
+#ifdef	LIBCURL
365
+#include <curl/curl.h>
366
+#endif
367
+
364 368
 typedef enum	{ FALSE = 0, TRUE = 1 } bool;
365 369
 
366 370
 static	message	*parseEmailHeaders(message *m, const table_t *rfc821Table, bool destroy);