+#if !defined(LTTNG_UST_CUSTOM_UPGRADE_CONFLICTING_SYMBOLS)
+/* lttng-ust 2.12 (custom branch) getter */
+static int (*__lttng_ust_get_fd_mutex_nest)(void) = NULL;
+
+void *lttng_ust_get_fd_mutex_nest_init(void)
+{
+ if (__lttng_ust_get_fd_mutex_nest == NULL) {
+ __lttng_ust_get_fd_mutex_nest = dlsym(RTLD_DEFAULT, "lttng_ust_get_fd_mutex_nest");
+
+ if (__lttng_ust_get_fd_mutex_nest == NULL) {
+ __lttng_ust_get_fd_mutex_nest = (void *) LTTNG_UST_DLSYM_FAILED_PTR;
+ fprintf(stderr, "%s\n", dlerror());
+ }
+ }
+
+ return __lttng_ust_get_fd_mutex_nest;
+}
+
+static int lttng_ust_get_fd_mutex_nest_chain(void)
+{
+ assert(__lttng_ust_get_fd_mutex_nest != NULL);
+ if (__lttng_ust_get_fd_mutex_nest != (void *) LTTNG_UST_DLSYM_FAILED_PTR)
+ return __lttng_ust_get_fd_mutex_nest();
+ return 0;
+}
+#else
+static int lttng_ust_get_fd_mutex_nest_chain(void)
+{
+ return 0;
+}
+#endif
+