#include <limits.h>
#include <unistd.h>
+#include <lttng/ust-config.h>
#include <lttng/ust-abi.h>
#ifdef __cplusplus
LTTNG_UST_ERR_NR, /* Last element */
};
+/* Custom upgrade 2.12 to 2.13 */
+#ifndef LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS
+#define lttng_ust_strerror lttng_ust_strerror1
+#endif
+
/*
* lttng_ust_strerror
* @code: must be a negative value of enum lttng_ust_error_code (or 0).
* Returns a ptr to a string representing a human readable error code from the
* ustcomm_return_code enum.
*/
-const char *lttng_ust_strerror(int code)
+static const char *lttng_ust_strerror_orig(int code)
{
code = -code;
return ustcomm_readable_code[CODE_OFFSET(code)];
}
+
+/* Custom upgrade 2.12 to 2.13 */
+#undef lttng_ust_strerror
+const char *lttng_ust_strerror1(int code)
+ __attribute__ ((alias ("lttng_ust_strerror_orig")));
+
+#ifdef LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS
+const char *lttng_ust_strerror(int code)
+ __attribute__ ((alias ("lttng_ust_strerror_orig")));
+#endif