#include <ltdl.h>
-#include <pulse/i18n.h>
-
+#include <pulsecore/i18n.h>
#include <pulsecore/macro.h>
#include <pulsecore/log.h>
relocations on any libraries that are already loaded into our
process, i.e. because the pulseaudio binary links directly to
them. To disable lazy relocations for those libraries it is possible
- to set $LT_BIND_NOW before starting the pulsaudio binary.
+ to set $LT_BIND_NOW before starting the pulseaudio binary.
*/
static lt_module bind_now_open(lt_user_data d, const char *fname, lt_dladvise advise) {
pa_assert(fname);
if (!(m = dlopen(fname, PA_BIND_NOW))) {
+ pa_log(_("Failed to open module %s: %s"), fname, dlerror());
lt_dlseterror(LT_ERROR_CANNOT_OPEN);
return NULL;
}
pa_assert(m);
- if (dlclose(m) != 0){
+ if (dlclose(m) != 0) {
lt_dlseterror(LT_ERROR_CANNOT_CLOSE);
return 1;
}