summaryrefslogtreecommitdiffstats
path: root/package/clamav/0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-05-07 23:20:30 +0200
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-05-13 22:59:52 +0200
commiteb4b00129ccea673f48c8872ea0a6947f1f904e4 (patch)
tree8199783522e981703c79b57d6dbef9856e399531 /package/clamav/0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch
parenta557aedad2d8b4735afe709e68ed58f7304580d8 (diff)
downloadbuildroot-eb4b00129ccea673f48c8872ea0a6947f1f904e4.tar.gz
buildroot-eb4b00129ccea673f48c8872ea0a6947f1f904e4.zip
clamav: reformat patches as Git-formatted patches
ClamAV is using Git upstream (https://github.com/Cisco-Talos/clamav-devel), so it makes sense to use Git-formatted patches. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'package/clamav/0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch')
-rw-r--r--package/clamav/0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/clamav/0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch b/package/clamav/0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch
new file mode 100644
index 0000000000..daac677eaa
--- /dev/null
+++ b/package/clamav/0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch
@@ -0,0 +1,34 @@
+From 52fda6e6689e22866a39ec4273713fb6035c38b2 Mon Sep 17 00:00:00 2001
+From: Bernd Kuhls <bernd.kuhls@t-online.de>
+Date: Mon, 7 May 2018 23:14:46 +0200
+Subject: [PATCH] clamdscan/proto.c: fix build error due to missing sockaddr_un
+ definition
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+proto.c: In function ‘dconnect’:
+proto.c:86:67: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
+ if (connect(sockd, (struct sockaddr *)&nixsock, sizeof(nixsock)) == 0)
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+Upstream-status: http://lurker.clamav.net/message/20140928.130829.5494fd68.en.html
+---
+ clamdscan/proto.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/clamdscan/proto.c b/clamdscan/proto.c
+index 0205f6da0..d3396732f 100644
+--- a/clamdscan/proto.c
++++ b/clamdscan/proto.c
+@@ -42,6 +42,7 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <sys/types.h>
++#include <sys/un.h>
+ #ifdef HAVE_SYS_SELECT_H
+ #include <sys/select.h>
+ #endif
+--
+2.14.3
+
OpenPOWER on IntegriCloud