changeset 8923:5040d7cb1335 HEAD

FreeBSD compiling fix.
author Timo Sirainen <tss@iki.fi>
date Mon, 06 Apr 2009 17:20:20 -0400
parents 3d2a48f73f86
children f38765916f6d
files src/lib/lib-signals.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 @@
 		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 @@
 			return "object-specific hardware error";
 		}
 	}
+#endif
 	return t_strdup_printf("unknown %d", sicode);
 }