[PATCH] Fix OAV module build for samba-vscan (e.g. on FreeBSD)

Rainer Link <rainer-pBPPa8WU5k41Tgt60Rntydi2O/[email protected]> Mon, 23 Feb 2004 17:04:12 +0100
Newsgroups gmane.comp.security.virus.openantivirus.general
Message-ID <[email protected]>
Hi,

if the openantivirus module of samba-vscan 0.3.4 (probably other
versions as well) doesn't build (e.g. on FreeBSD), please apply the 
attached mini-diff. Seems I was just too stupid to read "man 2 socket" :-(

best regards,
Rainer Link
vscan-oav_core.h.dif (text/plain, 534 B)
Index: vscan-oav_core.h
===================================================================
RCS file: /cvsroot/openantivirus/samba-vscan/openantivirus/Attic/vscan-oav_core.h,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -r1.1 -r1.1.2.1
--- vscan-oav_core.h	12 Mar 2002 14:10:24 -0000	1.1
+++ vscan-oav_core.h	23 Feb 2004 10:55:54 -0000	1.1.2.1
@@ -1,6 +1,7 @@
 #ifndef __VSCAN_OAV_CORE_H_
 #define __VSCAN_OAV_CORE_H_
 
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>