Build fix: missing header on macOS
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Apr 2023 15:28:22 +0000 (11:28 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Tue, 18 Apr 2023 15:30:11 +0000 (11:30 -0400)
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 <jeremie.galarneau@efficios.com>
Change-Id: I69fa0c0bc442d0cb28779f6b4c55d0b6a7196791

src/common/exception.cpp

index 028d253f2d885a6c9d9c29a4dc8c875a40b698f2..4fc327bf351159ce63b164a350d8e8d101f6af6e 100644 (file)
@@ -9,6 +9,8 @@
 
 #include <common/error.hpp>
 
+#include <lttng/lttng-error.h>
+
 #include <sstream>
 
 namespace {
This page took 0.025486 seconds and 4 git commands to generate.