Browse code

socklen_t fix

git-svn: trunk@2223

Tomasz Kojm authored on 2006/08/31 06:32:58
Showing 2 changed files
... ...
@@ -16,6 +16,12 @@
16 16
  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17 17
  */
18 18
 
19
+#if HAVE_CONFIG_H
20
+#include "clamav-config.h"
21
+#endif
22
+
23
+#include "nonblock.h"
24
+
19 25
 #include <stdio.h>
20 26
 #include <stdlib.h>
21 27
 #include <unistd.h>
... ...
@@ -32,7 +38,6 @@
32 32
 #include <clamav.h>
33 33
 #include <errno.h>
34 34
 
35
-#include "nonblock.h"
36 35
 #include "output.h"
37 36
 
38 37
 #ifndef timercmp
... ...
@@ -19,6 +19,12 @@
19 19
 #ifndef __NONBLOCK_H
20 20
 #define __NONBLOCK_H
21 21
 
22
+#if HAVE_CONFIG_H
23
+#include "clamav-config.h"
24
+#endif
25
+
26
+#include <sys/socket.h>
27
+
22 28
 /*
23 29
 	wait_connect(): wrapper for connect(), with explicit 'secs' timeout
24 30
 */