Browse code

Fix implicit function declaration

git-svn: trunk@2569

aCaB authored on 2006/12/21 00:33:55
Showing 6 changed files
... ...
@@ -1,3 +1,8 @@
1
+Wed Dec 20 16:30:49 CET 2006 (acab)
2
+-----------------------------------
3
+  * clamd, libclamav: Fix implicit function declaration
4
+    reported by Stephen Gran <steve*lobefin.net>
5
+
1 6
 Wed Dec 20 14:56:12 GMT 2006 (njh)
2 7
 ----------------------------------
3 8
   * libclamav/mbox.c, clamav-milter:	Fix compilation error from new clamav.h
... ...
@@ -28,6 +28,9 @@
28 28
 #include <sys/stat.h>
29 29
 #include <sys/un.h>
30 30
 #include <errno.h>
31
+#ifdef HAVE_UNISTD_H
32
+#include <unistd.h>
33
+#endif
31 34
 
32 35
 #include "libclamav/clamav.h"
33 36
 
... ...
@@ -28,6 +28,9 @@
28 28
 #include <stdio.h>
29 29
 #include <string.h>
30 30
 #include <sys/types.h>
31
+#ifdef HAVE_UNISTD_H
32
+#include <unistd.h>
33
+#endif
31 34
 #ifndef	C_WINDOWS
32 35
 #include <sys/socket.h>
33 36
 #include <netinet/in.h>
... ...
@@ -26,6 +26,7 @@
26 26
 #include <string.h>
27 27
 #include <stdlib.h>
28 28
 #include <ctype.h>
29
+#include <sys/types.h>
29 30
 #ifdef	HAVE_UNISTD_H
30 31
 #include <unistd.h>
31 32
 #endif
... ...
@@ -22,6 +22,7 @@
22 22
  */
23 23
 
24 24
 #include "unrar.h"
25
+#include <string.h>
25 26
 
26 27
 #define STARTL1  2
27 28
 static unsigned int dec_l1[]={0x8000,0xa000,0xc000,0xd000,0xe000,0xea00,
... ...
@@ -23,6 +23,7 @@
23 23
 
24 24
 #include <string.h>
25 25
 
26
+#include "others.h"
26 27
 #include "unrar.h"
27 28
 #include "unrar20.h"
28 29