]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
FreeBSD compiling fix.
authorTimo Sirainen <tss@iki.fi>
Mon, 6 Apr 2009 21:20:20 +0000 (17:20 -0400)
committerTimo Sirainen <tss@iki.fi>
Mon, 6 Apr 2009 21:20:20 +0000 (17:20 -0400)
--HG--
branch : HEAD

src/lib/lib-signals.c

index 9ab5e8d208c12931c5be4e27a9d09b5ce79b76de..de530e3ede5cba15499f618c714fa610c31917fd 100644 (file)
@@ -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);
 }