2
1

0001-clamdscan-proto.c-fix-build-error-due-to-missing-soc.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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. proto.c: In function ‘dconnect’:
  10. proto.c:86:67: error: invalid application of ‘sizeof’ to incomplete type ‘struct sockaddr_un’
  11. if (connect(sockd, (struct sockaddr *)&nixsock, sizeof(nixsock)) == 0)
  12. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  13. Upstream-status: http://lurker.clamav.net/message/20140928.130829.5494fd68.en.html
  14. ---
  15. clamdscan/proto.c | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/clamdscan/proto.c b/clamdscan/proto.c
  18. index 0205f6da0..d3396732f 100644
  19. --- a/clamdscan/proto.c
  20. +++ b/clamdscan/proto.c
  21. @@ -42,6 +42,7 @@
  22. #include <sys/stat.h>
  23. #include <fcntl.h>
  24. #include <sys/types.h>
  25. +#include <sys/un.h>
  26. #ifdef HAVE_SYS_SELECT_H
  27. #include <sys/select.h>
  28. #endif
  29. --
  30. 2.14.3