summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-04-16 14:51:02 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-04-16 14:51:02 +0000
commitb5fd86aee1258b1964d460c4ad138c59d49e7691 (patch)
tree3a98303ec9eb5de80e2a6a9fa44fcb11be6d6bdf /source3
parentddf662d11886189151dca188a2eb4f6bd602caa0 (diff)
downloadsamba-b5fd86aee1258b1964d460c4ad138c59d49e7691.tar.gz
samba-b5fd86aee1258b1964d460c4ad138c59d49e7691.tar.bz2
samba-b5fd86aee1258b1964d460c4ad138c59d49e7691.zip
Only declare backtrace variables when using them
(This used to be commit 429b373453a04fa6871324dd0a3ff8a203c519f8)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c
index a392530786..a2d8d42cbe 100644
--- a/source3/lib/util.c
+++ b/source3/lib/util.c
@@ -1401,9 +1401,11 @@ void smb_panic(const char *why)
char *cmd;
int result;
size_t i;
+#ifdef HAVE_BACKTRACE_SYMBOLS
void *backtrace_stack[BACKTRACE_STACK_SIZE];
size_t backtrace_size;
char **backtrace_strings;
+#endif
#ifdef DEVELOPER
{