c395ae1600712e62883669989fbf62b1099633a5
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / clamav / 0001-clamdscan.patch
1 Fixes build error
2
3 proto.c: In function ‘dconnect’:
4 proto.c:86:67: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
5              if (connect(sockd, (struct sockaddr *)&nixsock, sizeof(nixsock)) == 0)
6
7 Patch sent upstream: http://lurker.clamav.net/message/20140928.130829.5494fd68.en.html
8
9 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
10
11 diff -uNr clamav-0.98.3.org/clamdscan/proto.c clamav-0.98.3/clamdscan/proto.c
12 --- clamav-0.98.3.org/clamdscan/proto.c 2014-05-06 20:39:56.000000000 +0200
13 +++ clamav-0.98.3/clamdscan/proto.c     2014-05-10 10:41:44.000000000 +0200
14 @@ -35,6 +35,7 @@
15  #include <sys/stat.h>
16  #include <fcntl.h>
17  #include <sys/types.h>
18 +#include <sys/un.h>
19  #ifdef HAVE_SYS_SELECT_H
20  #include <sys/select.h>
21  #endif