diff options
author | gshapiro <gshapiro@FreeBSD.org> | 2012-09-10 01:15:51 +0000 |
---|---|---|
committer | gshapiro <gshapiro@FreeBSD.org> | 2012-09-10 01:15:51 +0000 |
commit | 584000d59d3d417055ac4636a42d1d445436e2a4 (patch) | |
tree | f074c04b191803771db00ffc21e4eb32d49f8757 /contrib/sendmail | |
parent | cbc3fb8c5b3ee1fac8d2fe39949d961464a6c7f8 (diff) | |
download | FreeBSD-src-584000d59d3d417055ac4636a42d1d445436e2a4.zip FreeBSD-src-584000d59d3d417055ac4636a42d1d445436e2a4.tar.gz |
Properly define true/false when defining __bool_true_false_are_defined
for filters which pull in mfapi.h before stdbool.h. Issue reported by
Petr Rehor, maintainer of amavisd-milter port.
MFC after: 3 days
Diffstat (limited to 'contrib/sendmail')
-rw-r--r-- | contrib/sendmail/include/libmilter/mfapi.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/sendmail/include/libmilter/mfapi.h b/contrib/sendmail/include/libmilter/mfapi.h index 8e3a173..f56992f 100644 --- a/contrib/sendmail/include/libmilter/mfapi.h +++ b/contrib/sendmail/include/libmilter/mfapi.h @@ -96,6 +96,8 @@ typedef int sfsistat; # ifndef bool # ifndef __bool_true_false_are_defined typedef int bool; +# define false 0 +# define true 1 # define __bool_true_false_are_defined 1 # endif /* ! __bool_true_false_are_defined */ # endif /* bool */ |