From: Timo Sirainen Date: Mon, 6 Apr 2009 21:20:20 +0000 (-0400) Subject: FreeBSD compiling fix. X-Git-Tag: 2.0.alpha1~1020 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8b70391c7e36659aa7bd0438cd4eb0261bbc49c3;p=thirdparty%2Fdovecot%2Fcore.git FreeBSD compiling fix. --HG-- branch : HEAD --- diff --git a/src/lib/lib-signals.c b/src/lib/lib-signals.c index 9ab5e8d208..de530e3ede 100644 --- a/src/lib/lib-signals.c +++ b/src/lib/lib-signals.c @@ -41,6 +41,9 @@ const char *lib_signal_code_to_str(int signo, int sicode) 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 signo, int sicode) return "object-specific hardware error"; } } +#endif return t_strdup_printf("unknown %d", sicode); }