Commit 24b0e5a6 authored by David Faure's avatar David Faure
Browse files

Akonadi: fix compilation with clang

abi::__forced_unwind is gcc specific, apparently.

Test Plan: Builds

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: kde-pim

Tags: #kde_pim

Differential Revision:
parent ef516b67
......@@ -309,7 +309,7 @@ void Connection::handleIncomingData()
qCWarning(AKONADISERVER_LOG) << "Protocol exception when handling command" << cmd->type()
<< "on connection" << m_identifier << ":" << e.what();
m_connectionClosing = true;
#if defined(Q_OS_LINUX)
#if defined(Q_OS_LINUX) && !defined(_LIBCPP_VERSION)
} catch (abi::__forced_unwind&) {
// HACK: NPTL throws __forced_unwind during thread cancellation and
// we *must* rethrow it otherwise the program aborts. Due to the issue
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment