diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-08-24 09:49:09 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:16:41 -0500 |
commit | a485fa050c1b210847bb4867ade25afc5ca941c7 (patch) | |
tree | 92742606ea87e6758123cb6dbdd2c227752a1988 /source4/lib/util | |
parent | 9fd23a6e918d5184eaf6814e4abb51a348e566a3 (diff) | |
download | samba-a485fa050c1b210847bb4867ade25afc5ca941c7.tar.gz samba-a485fa050c1b210847bb4867ade25afc5ca941c7.tar.bz2 samba-a485fa050c1b210847bb4867ade25afc5ca941c7.zip |
r17783: fix compiler warnings
metze
(This used to be commit c999dd02100e59bfd34585850c354ac2e9708cbb)
Diffstat (limited to 'source4/lib/util')
-rw-r--r-- | source4/lib/util/fault.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/source4/lib/util/fault.c b/source4/lib/util/fault.c index 8b447851dc..c7d6b7ede6 100644 --- a/source4/lib/util/fault.c +++ b/source4/lib/util/fault.c @@ -38,7 +38,6 @@ static const char *progname; #ifdef HAVE_BACKTRACE #include <execinfo.h> -#define BACKTRACE_STACK_SIZE 64 #elif HAVE_LIBEXC_H #include <libexc.h> #endif @@ -49,7 +48,9 @@ static const char *progname; _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 @@ _PUBLIC_ void call_backtrace(void) #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 |