bctoolbox/bctoolbox-0.6.0-ftbfs-arm.patch

19 lines
535 B
Diff
Raw Permalink Normal View History

--- bctoolbox-0.6.0/src/utils/exception.cc.orig 2017-11-20 11:17:25.586640087 +0100
+++ bctoolbox-0.6.0/src/utils/exception.cc 2017-11-20 11:17:59.044499675 +0100
@@ -28,6 +28,7 @@
using namespace std;
static void uncaught_handler() {
+#if ATOMIC_INT_LOCK_FREE >= 2
std::exception_ptr p = current_exception();
try {
rethrow_exception(p);
@@ -36,6 +37,7 @@
} catch (std::exception &ee) {
BCTBX_SLOGE(NULL) << "Unexpected exception [" << ee.what() << " ] use BctbxException for better debug";
}
+#endif
abort();
}