Build fix: missing error_get_str on non-glibc builds
[lttng-tools.git] / src / common / error.hpp
index d1996384db5c839cd2764e62d36dcb7d26e6499c..d00f4130923d8e0c0b6941343fcc90f4ec242525 100644 (file)
@@ -243,7 +243,6 @@ static inline void __lttng_print_check_abort(enum lttng_error_level type)
 /*
  * Version using GNU strerror_r, for linux with appropriate defines.
  */
-const char *error_get_str(int32_t code);
 #define PERROR(call, args...)                                                      \
        do {                                                                       \
                char *_perror_buf;                                                 \
@@ -253,6 +252,8 @@ const char *error_get_str(int32_t code);
        } while (0);
 #endif
 
+const char *error_get_str(int32_t code);
+
 namespace lttng {
 namespace logging {
 namespace details {
This page took 0.023338 seconds and 4 git commands to generate.