Browse code

fix compilation error on systems with INCOMPLETE_CMSG

git-svn: trunk@1764

Tomasz Kojm authored on 2005/11/22 03:31:01
Showing 2 changed files
... ...
@@ -1,3 +1,8 @@
1
+Mon Nov 21 19:29:24 CET 2005 (tk)
2
+---------------------------------
3
+  * clamd/others.h: fix compilation error on systems with INCOMPLETE_CMSG
4
+		    Reported by Fukuda Manabu <fukuda*cri-mw.co.jp>
5
+
1 6
 Thu Nov 17 13:52:43 CET 2005 (tk)
2 7
 ---------------------------------
3 8
   * libclamav/pe.c: respect CL_SCAN_BLOCKMAX
... ...
@@ -32,7 +32,7 @@ int is_fd_connected(int fd);
32 32
 void virusaction(const char *filename, const char *virname, const struct cfgstruct *copt);
33 33
 int writen(int fd, void *buff, unsigned int count);
34 34
 
35
-#if defined(HAVE_RECVMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)) && !defined(C_CYGWIN) && !defined(C_OS2)
35
+#if defined(HAVE_RECVMSG) && (defined(HAVE_ACCRIGHTS_IN_MSGHDR) || defined(HAVE_CONTROL_IN_MSGHDR)) && !defined(C_CYGWIN) && !defined(C_OS2) && !defined(INCOMPLETE_CMSG)
36 36
 int readsock(int sockfd, char *buf, size_t size);
37 37
 #else
38 38
 #define	readsock	read