From bc0ce287cd4d50f95433e0b25ecd0169e633d61d Mon Sep 17 00:00:00 2001 From: garga Date: Tue, 26 Jul 2011 22:13:55 +0000 Subject: Fix qmail, qmail-tls, qmail-mysql and qmail-ldap build with clang --- mail/qmail/Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mail/qmail/Makefile') 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 -- cgit