svn commit: r246880 - in head: lib/libsm libexec/mail.local libexec/smrsh share/mk usr.bin/vacation usr.sbin/sendmail

Gregory Shapiro gshapiro at freebsd.org
Tue Apr 16 16:39:02 UTC 2013


Just a quick comment that I will be committing a fix to the sendmail
source tree on FreeBSD to avoid this issue.  It will avoid loading
stdbool.h when clang is in use, thereby turning all bools to ints.
It will be checked in this weekend (currently being tested before
release).

/*
**  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
#   define SM_CONF_STDBOOL_H		1
#  else /* !defined(__clang__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L */
#   define SM_CONF_STDBOOL_H		0
#  endif /* !defined(__clang__) && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L */
# endif /* ! SM_CONF_STDBOOL_H */


More information about the svn-src-all mailing list