mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
Fix building again libtool/ltdl 2.2.4.
On changeset f1d2bf8408 support for
libtool 2.2 was broken as libtool_set_error was not defined anymore on
that version. Fix this by also putting under #ifdef the calls to that
function.
This commit is contained in:
parent
75b28e97fa
commit
8a3d666da3
1 changed files with 6 additions and 0 deletions
|
|
@ -102,7 +102,9 @@ static lt_module bind_now_open(lt_user_data d, const char *fname, lt_dladvise ad
|
||||||
pa_assert(fname);
|
pa_assert(fname);
|
||||||
|
|
||||||
if (!(m = dlopen(fname, PA_BIND_NOW))) {
|
if (!(m = dlopen(fname, PA_BIND_NOW))) {
|
||||||
|
#ifdef HAVE_LT_DLMUTEX_REGISTER
|
||||||
libtool_set_error(dlerror());
|
libtool_set_error(dlerror());
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -114,7 +116,9 @@ static int bind_now_close(lt_user_data d, lt_module m) {
|
||||||
pa_assert(m);
|
pa_assert(m);
|
||||||
|
|
||||||
if (dlclose(m) != 0){
|
if (dlclose(m) != 0){
|
||||||
|
#ifdef HAVE_LT_DLMUTEX_REGISTER
|
||||||
libtool_set_error(dlerror());
|
libtool_set_error(dlerror());
|
||||||
|
#endif
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -128,7 +132,9 @@ static lt_ptr bind_now_find_sym(lt_user_data d, lt_module m, const char *symbol)
|
||||||
pa_assert(symbol);
|
pa_assert(symbol);
|
||||||
|
|
||||||
if (!(ptr = dlsym(m, symbol))) {
|
if (!(ptr = dlsym(m, symbol))) {
|
||||||
|
#ifdef HAVE_LT_DLMUTEX_REGISTER
|
||||||
libtool_set_error(dlerror());
|
libtool_set_error(dlerror());
|
||||||
|
#endif
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue