Browse code

Honour clamav-config.h

git-svn: trunk@2164

Nigel Horne authored on 2006/08/02 01:59:10
Showing 2 changed files
... ...
@@ -1,3 +1,7 @@
1
+Tue Aug  1 17:58:32 BST 2006 (njh)
2
+----------------------------------
3
+  * shared/network.c:	Now honours clamav-config.h
4
+
1 5
 Tue Aug  1 12:23:43 CEST 2006 (acab)
2 6
 ------------------------------------
3 7
   * libclamav: includes cleanup (big thanks njh!)
... ...
@@ -18,14 +18,28 @@
18 18
  *
19 19
  */
20 20
 
21
+#ifdef	_MSC_VER
22
+#include <windows.h>
23
+#include <winsock.h>
24
+#endif
25
+
21 26
 #if HAVE_CONFIG_H
22 27
 #include "clamav-config.h"
23 28
 #endif
24 29
 
25 30
 #include <stdio.h>
31
+
32
+#ifdef	HAVE_STRING_H
26 33
 #include <string.h>
34
+#endif
35
+
36
+#ifdef	HAVE_SYS_TYPES_H
27 37
 #include <sys/types.h>
38
+#endif
39
+
40
+#ifndef	C_WINDOWS
28 41
 #include <netdb.h>
42
+#endif
29 43
 
30 44
 #ifdef  CL_THREAD_SAFE
31 45
 #include <pthread.h>