From df28caaa2a7a2762ea7f20f393dfbe8795cda602 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Tue, 18 Apr 2023 11:28:22 -0400 Subject: [PATCH] Build fix: missing header on macOS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/common/exception.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.34.1