summaryrefslogtreecommitdiffstats
path: root/kdesktop/lock/lockprocess.cc
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2013-01-26 21:12:51 +0100
committerSlávek Banko <[email protected]>2013-01-26 21:13:32 +0100
commit936d3cec490c13f2c5f7dd14f5e364fddaa6da71 (patch)
treeb261cce9c75bc32d7e951cca42273541a9b96114 /kdesktop/lock/lockprocess.cc
parent42dde50c7fad5059d63535a5342eef317827f279 (diff)
downloadtdebase-936d3cec490c13f2c5f7dd14f5e364fddaa6da71.tar.gz
tdebase-936d3cec490c13f2c5f7dd14f5e364fddaa6da71.zip
Add CMake option for backtrace in kdesktop_lock exception handler
Diffstat (limited to 'kdesktop/lock/lockprocess.cc')
-rw-r--r--kdesktop/lock/lockprocess.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/kdesktop/lock/lockprocess.cc b/kdesktop/lock/lockprocess.cc
index a3f5fb56f..5f01274a8 100644
--- a/kdesktop/lock/lockprocess.cc
+++ b/kdesktop/lock/lockprocess.cc
@@ -137,6 +137,7 @@ static Atom gXA_SCREENSAVER_VERSION;
void print_trace()
{
+#ifdef WITH_KDESKTOP_LOCK_BACKTRACE
void *array[10];
size_t size;
char **strings;
@@ -152,6 +153,7 @@ void print_trace()
}
free (strings);
+#endif
}
static void segv_handler(int)