]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/clamav/0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch
lrzsz: install symlinks for XMODEM and YMODEM
[coffee/buildroot.git] / package / clamav / 0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch
1 From 52fda6e6689e22866a39ec4273713fb6035c38b2 Mon Sep 17 00:00:00 2001
2 From: Bernd Kuhls <bernd.kuhls@t-online.de>
3 Date: Mon, 7 May 2018 23:14:46 +0200
4 Subject: [PATCH] clamdscan/proto.c: fix build error due to missing sockaddr_un
5  definition
6 MIME-Version: 1.0
7 Content-Type: text/plain; charset=UTF-8
8 Content-Transfer-Encoding: 8bit
9
10 proto.c: In function ‘dconnect’:
11 proto.c:86:67: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
12              if (connect(sockd, (struct sockaddr *)&nixsock, sizeof(nixsock)) == 0)
13
14 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
15 Upstream-status: http://lurker.clamav.net/message/20140928.130829.5494fd68.en.html
16 ---
17  clamdscan/proto.c | 1 +
18  1 file changed, 1 insertion(+)
19
20 diff --git a/clamdscan/proto.c b/clamdscan/proto.c
21 index 0205f6da0..d3396732f 100644
22 --- a/clamdscan/proto.c
23 +++ b/clamdscan/proto.c
24 @@ -42,6 +42,7 @@
25  #include <sys/stat.h>
26  #include <fcntl.h>
27  #include <sys/types.h>
28 +#include <sys/un.h>
29  #ifdef HAVE_SYS_SELECT_H
30  #include <sys/select.h>
31  #endif
32 -- 
33 2.14.3
34