svn commit: samba r17783 - in branches/SAMBA_4_0/source/lib/util: .

metze at samba.org metze at samba.org
Thu Aug 24 09:49:10 GMT 2006


Author: metze
Date: 2006-08-24 09:49:09 +0000 (Thu, 24 Aug 2006)
New Revision: 17783

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17783

Log:
fix compiler warnings

metze
Modified:
   branches/SAMBA_4_0/source/lib/util/fault.c


Changeset:
Modified: branches/SAMBA_4_0/source/lib/util/fault.c
===================================================================
--- branches/SAMBA_4_0/source/lib/util/fault.c	2006-08-24 09:48:40 UTC (rev 17782)
+++ branches/SAMBA_4_0/source/lib/util/fault.c	2006-08-24 09:49:09 UTC (rev 17783)
@@ -38,7 +38,6 @@
 
 #ifdef HAVE_BACKTRACE
 #include <execinfo.h>
-#define BACKTRACE_STACK_SIZE 64
 #elif HAVE_LIBEXC_H
 #include <libexc.h>
 #endif
@@ -49,7 +48,9 @@
 _PUBLIC_ void call_backtrace(void)
 {
 #ifdef HAVE_BACKTRACE
+#ifndef BACKTRACE_STACK_SIZE
 #define BACKTRACE_STACK_SIZE 64
+#endif
 	void *backtrace_stack[BACKTRACE_STACK_SIZE];
 	size_t backtrace_size;
 	char **backtrace_strings;
@@ -73,6 +74,9 @@
 #elif HAVE_LIBEXC
 
 #define NAMESIZE 32 /* Arbitrary */
+#ifndef BACKTRACE_STACK_SIZE
+#define BACKTRACE_STACK_SIZE 64
+#endif
 
 	/* The IRIX libexc library provides an API for unwinding the stack. See
 	 * libexc(3) for details. Apparantly trace_back_stack leaks memory, but



More information about the samba-cvs mailing list