dovecot-1.3: FreeBSD compiling fix.
dovecot at dovecot.org
dovecot at dovecot.org
Tue Apr 7 00:20:41 EEST 2009
details: http://hg.dovecot.org/dovecot-1.3/rev/286ff5114588
changeset: 9032:286ff5114588
user: Timo Sirainen <tss at iki.fi>
date: Mon Apr 06 17:20:20 2009 -0400
description:
FreeBSD compiling fix.
diffstat:
1 file changed, 4 insertions(+)
src/lib/lib-signals.c | 4 ++++
diffs (21 lines):
diff -r bfbbae6cdb51 -r 286ff5114588 src/lib/lib-signals.c
--- a/src/lib/lib-signals.c Mon Apr 06 17:15:37 2009 -0400
+++ b/src/lib/lib-signals.c Mon Apr 06 17:20:20 2009 -0400
@@ -41,6 +41,9 @@ const char *lib_signal_code_to_str(int s
return "timer";
}
+ /* If SEGV_MAPERR is supported, the rest of them must be too.
+ FreeBSD 6 at least doesn't support these. */
+#ifdef SEGV_MAPERR
switch (signo) {
case SIGSEGV:
switch (sicode) {
@@ -60,6 +63,7 @@ const char *lib_signal_code_to_str(int s
return "object-specific hardware error";
}
}
+#endif
return t_strdup_printf("unknown %d", sicode);
}
More information about the dovecot-cvs
mailing list