From: Jérémie Galarneau Date: Tue, 18 Apr 2023 15:28:22 +0000 (-0400) Subject: Build fix: missing header on macOS X-Git-Url: https://git.liburcu.org/?p=lttng-tools.git;a=commitdiff_plain;h=df28caaa2a7a2762ea7f20f393dfbe8795cda602 Build fix: missing header on macOS The build fails on macOS (on both ARM64 and AMD64 platforms): exception.cpp:32:41: error: use of undeclared identifier 'error_get_str' runtime_error(msg + ": " + std::string(error_get_str(error_code)), ^ error_get_str is defined in lttng/lttng-error.h Signed-off-by: Jérémie Galarneau Change-Id: I69fa0c0bc442d0cb28779f6b4c55d0b6a7196791 --- diff --git a/src/common/exception.cpp b/src/common/exception.cpp index 028d253f2..4fc327bf3 100644 --- a/src/common/exception.cpp +++ b/src/common/exception.cpp @@ -9,6 +9,8 @@ #include +#include + #include namespace {