$OpenBSD: patch-ext_libclementine-common_core_logging_cpp,v 1.3 2013/03/21 16:05:00 zhuk Exp $
backtrace() is probably present on GNU and Solaris only.
--- ext/libclementine-common/core/logging.cpp.orig	Thu Oct 11 15:16:39 2012
+++ ext/libclementine-common/core/logging.cpp	Thu Feb  7 17:55:23 2013
@@ -21,9 +21,6 @@
 #include <QtGlobal>
 
 #include <cxxabi.h>
-#ifdef Q_OS_UNIX
-#include <execinfo.h>
-#endif
 
 #include <QCoreApplication>
 #include <QDateTime>
@@ -31,6 +28,7 @@
 
 #include <glib.h>
 
+#include "config.h"
 #include "logging.h"
 
 
@@ -224,7 +222,7 @@ QString DemangleSymbol(const QString& symbol) {
 }
 
 void DumpStackTrace() {
-#ifdef Q_OS_UNIX
+#if HAVE_BACKTRACE
   void* callstack[128];
   int callstack_size = backtrace(reinterpret_cast<void**>(&callstack), sizeof(callstack));
   char** symbols = backtrace_symbols(reinterpret_cast<void**>(&callstack), callstack_size);
@@ -234,7 +232,7 @@ void DumpStackTrace() {
   }
   free(symbols);
 #else
-  qLog(Debug) << "FIXME: Implement printing stack traces on this platform";
+  qLog(Debug) << "FIXME: Implement printing stack traces on this platform or provide separate execinfo library";
 #endif
 }
 
