From 087983a97ef018c412dba44386c15b02c1850754 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 25 Aug 2018 21:48:20 -0700 Subject: [PATCH] clamsmtp: Fix compile under musl sys/socket already includes the needed socket stuff. Including the second header causes the build to fail. Signed-off-by: Rosen Penev --- mail/clamsmtp/Makefile | 2 +- mail/clamsmtp/patches/010-fix-build.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 mail/clamsmtp/patches/010-fix-build.patch diff --git a/mail/clamsmtp/Makefile b/mail/clamsmtp/Makefile index 449594b35..aa3e31e4f 100644 --- a/mail/clamsmtp/Makefile +++ b/mail/clamsmtp/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=clamsmtp PKG_VERSION:=1.10 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=http://thewalter.net/stef/software/clamsmtp/ PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/mail/clamsmtp/patches/010-fix-build.patch b/mail/clamsmtp/patches/010-fix-build.patch new file mode 100644 index 000000000..a3d88dcee --- /dev/null +++ b/mail/clamsmtp/patches/010-fix-build.patch @@ -0,0 +1,12 @@ +diff --git a/common/sock_any.h b/common/sock_any.h +index 77c3841..1e30974 100644 +--- a/common/sock_any.h ++++ b/common/sock_any.h +@@ -39,7 +39,6 @@ + #ifndef __SOCK_ANY_H__ + #define __SOCK_ANY_H__ + +-#include + #include + #include +