summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjnemeth <jnemeth>2014-09-19 21:24:05 +0000
committerjnemeth <jnemeth>2014-09-19 21:24:05 +0000
commitc16f635098522ca325b6f7d2fb6fa2c6f381c3af (patch)
treefb6875f27a9c6816bb001d776452fdb739a1b761 /mail
parent7411337bb37bdf7dfd0ce5ff332dc4b5259ede6a (diff)
downloadpkgsrc-c16f635098522ca325b6f7d2fb6fa2c6f381c3af.tar.gz
build fix for clang
Diffstat (limited to 'mail')
-rw-r--r--mail/sendmail/Makefile4
-rw-r--r--mail/sendmail/patches/patch-bg24
2 files changed, 26 insertions, 2 deletions
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 <stdbool.h> 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 */
+
+ /*