build fix for clang
This commit is contained in:
parent
0dc0261741
commit
5536aed8ac
2 changed files with 26 additions and 2 deletions
|
@ -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]*
|
||||
|
|
24
mail/sendmail/patches/patch-bg
Normal file
24
mail/sendmail/patches/patch-bg
Normal file
|
@ -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 */
|
||||
|
||||
/*
|
Loading…
Reference in a new issue