dovecot: Fix for compiling with g++ 3.x.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Oct 28 01:52:04 EEST 2007
details: http://hg.dovecot.org/dovecot/rev/e2a4722f1b9b
changeset: 6638:e2a4722f1b9b
user: Timo Sirainen <tss at iki.fi>
date: Sun Oct 28 01:52:00 2007 +0300
description:
Fix for compiling with g++ 3.x.
diffstat:
1 file changed, 5 insertions(+)
src/lib/failures.h | 5 +++++
diffs (16 lines):
diff -r ce0088893a20 -r e2a4722f1b9b src/lib/failures.h
--- a/src/lib/failures.h Sun Oct 28 00:19:22 2007 +0300
+++ b/src/lib/failures.h Sun Oct 28 01:52:00 2007 +0300
@@ -38,7 +38,12 @@ void i_fatal_status(int status, const ch
ATTR_FORMAT(2, 3) ATTR_NORETURN;
/* Change failure handlers. */
+#ifndef __cplusplus
void i_set_fatal_handler(fatal_failure_callback_t *callback ATTR_NORETURN);
+#else
+/* Older g++ doesn't like attributes in parameters */
+void i_set_fatal_handler(fatal_failure_callback_t *callback);
+#endif
void i_set_error_handler(failure_callback_t *callback);
void i_set_info_handler(failure_callback_t *callback);
More information about the dovecot-cvs
mailing list