From c16f635098522ca325b6f7d2fb6fa2c6f381c3af Mon Sep 17 00:00:00 2001 From: jnemeth Date: Fri, 19 Sep 2014 21:24:05 +0000 Subject: build fix for clang --- mail/sendmail/Makefile | 4 ++-- mail/sendmail/patches/patch-bg | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 mail/sendmail/patches/patch-bg (limited to 'mail') diff --git a/mail/sendmail/Makefile b/mail/sendmail/Makefile index 20d48437bdd..643278a3c4c 100644 --- a/mail/sendmail/Makefile +++ b/mail/sendmail/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.125 2014/06/21 18:39:27 jnemeth Exp $ +# $NetBSD: Makefile,v 1.126 2014/09/19 21:24:05 jnemeth Exp $ PKGNAME= sendmail-${DIST_VERS} -PKGREVISION= 3 +PKGREVISION= 4 COMMENT= The well known Mail Transport Agent CONFLICTS+= courier-mta-[0-9]* fastforward>=0.51nb2 postfix-[0-9]* diff --git a/mail/sendmail/patches/patch-bg b/mail/sendmail/patches/patch-bg new file mode 100644 index 00000000000..d79a900f335 --- /dev/null +++ b/mail/sendmail/patches/patch-bg @@ -0,0 +1,24 @@ +$NetBSD: patch-bg,v 1.1 2014/09/19 21:24:05 jnemeth Exp $ + +--- include/sm/config.h.orig 2014-03-06 17:31:29.000000000 +0000 ++++ include/sm/config.h +@@ -24,16 +24,14 @@ + + /* + ** SM_CONF_STDBOOL_H is 1 if exists +-** +-** Note, unlike gcc, clang doesn't apply full prototypes to K&R definitions. + */ + + # ifndef SM_CONF_STDBOOL_H +-# if !defined(__clang__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L ++# if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L + # define SM_CONF_STDBOOL_H 1 +-# else /* !defined(__clang__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L */ ++# else /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L */ + # define SM_CONF_STDBOOL_H 0 +-# endif /* !defined(__clang__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L */ ++# endif /* defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L */ + # endif /* ! SM_CONF_STDBOOL_H */ + + /* -- cgit v1.2.3