aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2011-07-27 06:13:55 +0800
committergarga <garga@FreeBSD.org>2011-07-27 06:13:55 +0800
commitbc0ce287cd4d50f95433e0b25ecd0169e633d61d (patch)
tree1354cfb78353557e8a6a4897a48b80e4005ed0f8
parent8253860c0b89f40c07c1046cb8916599f3af0a32 (diff)
downloadfreebsd-ports-gnome-bc0ce287cd4d50f95433e0b25ecd0169e633d61d.tar.gz
freebsd-ports-gnome-bc0ce287cd4d50f95433e0b25ecd0169e633d61d.tar.zst
freebsd-ports-gnome-bc0ce287cd4d50f95433e0b25ecd0169e633d61d.zip
Fix qmail, qmail-tls, qmail-mysql and qmail-ldap build with clang
-rw-r--r--mail/qmail/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/mail/qmail/Makefile b/mail/qmail/Makefile
index a204e823bde1..27f6b9a2576f 100644
--- a/mail/qmail/Makefile
+++ b/mail/qmail/Makefile
@@ -728,6 +728,8 @@ post-patch:
.if ( ${ARCH} == "amd64" || ${ARCH} == "ia64" ) && !defined(SLAVE_LDAP)
@${PATCH} -d ${WRKSRC} < ${FILESDIR}/extra-patch-amd64
.endif
+ @${REINPLACE_CMD} -e "s/void *main/int main/g" ${WRKSRC}/*.c
+ @${REINPLACE_CMD} -e "/int main/ s/argc, *argv/int argc, char **argv/" ${WRKSRC}/install.c
do-configure:
@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc