dovecot-1.2: FreeBSD compiling fix.
    dovecot at dovecot.org 
    dovecot at dovecot.org
       
    Tue Apr  7 00:20:31 EEST 2009
    
    
  
details:   http://hg.dovecot.org/dovecot-1.2/rev/5040d7cb1335
changeset: 8923:5040d7cb1335
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 3d2a48f73f86 -r 5040d7cb1335 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