1From 52fda6e6689e22866a39ec4273713fb6035c38b2 Mon Sep 17 00:00:00 2001
2From: Bernd Kuhls <bernd.kuhls@t-online.de>
3Date: Mon, 7 May 2018 23:14:46 +0200
4Subject: [PATCH] clamdscan/proto.c: fix build error due to missing sockaddr_un
5 definition
6MIME-Version: 1.0
7Content-Type: text/plain; charset=UTF-8
8Content-Transfer-Encoding: 8bit
9
10proto.c: In function ‘dconnect’:
11proto.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
14Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
15Upstream-status: http://lurker.clamav.net/message/20140928.130829.5494fd68.en.html
16---
17 clamdscan/proto.c | 1 +
18 1 file changed, 1 insertion(+)
19
20diff --git a/clamdscan/proto.c b/clamdscan/proto.c
21index 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--
332.14.3
34
35