This fixes a built problem on systems without the lt_dlmutex_register
function. The overzealousness causes libtool_set_error and libtool_get_error
to be undefined. This fixes a build problem on Ubuntu Intrepid.
Signed-off-by: Russ Dill <Russ.Dill@gmail.com>
Signed-off-by: Lennart Poettering <lennart@poettering.net>
static pa_mutex *libtool_mutex = NULL;
-PA_STATIC_TLS_DECLARE_NO_FREE(libtool_tls);
-
static void libtool_lock(void) {
pa_mutex_lock(libtool_mutex);
}
pa_mutex_unlock(libtool_mutex);
}
+#endif
+
+PA_STATIC_TLS_DECLARE_NO_FREE(libtool_tls);
+
static void libtool_set_error(const char *error) {
PA_STATIC_TLS_SET(libtool_tls, (char*) error);
}
return PA_STATIC_TLS_GET(libtool_tls);
}
-#endif
-
#ifdef PA_BIND_NOW
/*