diff options
author | Khem Raj <raj.khem@gmail.com> | 2021-12-01 12:15:48 -0800 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2021-12-03 12:53:07 +0200 |
commit | 83dfe7b2231ecde3a8141c1737570176dfd5c30c (patch) | |
tree | 964aab31bfc112fdc7307a20927d52d85ab852ff | |
parent | 3f881dbc338e8f24f478567ee890c1f36ccb8996 (diff) |
libcamera: backtrace: Include cxxabi.h without HAVE_DW
Since it's used in code without HAVE_DW, it fails to compile on such
systems e.g. linux/musl
Fixes
src/libcamera/base/backtrace.cpp:235:16: error: use of undeclared identifier 'abi'
char *name = abi::__cxa_demangle(symbol, nullptr, nullptr, nullptr);
^
1 error generated.
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r-- | src/libcamera/base/backtrace.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcamera/base/backtrace.cpp b/src/libcamera/base/backtrace.cpp index d93e5518..483492c3 100644 --- a/src/libcamera/base/backtrace.cpp +++ b/src/libcamera/base/backtrace.cpp @@ -13,7 +13,6 @@ #endif #ifdef HAVE_DW -#include <cxxabi.h> #include <elfutils/libdwfl.h> #include <unistd.h> #endif @@ -27,6 +26,7 @@ #include <libunwind.h> #endif +#include <cxxabi.h> #include <sstream> #include <libcamera/base/span.h> |