diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-08-08 12:39:04 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2008-08-08 12:39:04 +0200 |
commit | 8a3d666da390b1356f5545649e23bda7ccb6d710 (patch) | |
tree | 4a7899e86c6da720081d2343a3753befaa7b7221 /src | |
parent | 75b28e97fa612d9dfdad60e37f6901a8923b92f4 (diff) |
Fix building again libtool/ltdl 2.2.4.
On changeset f1d2bf84089b1e5b5988a5e5d6d571a507a52337 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.
Diffstat (limited to 'src')
-rw-r--r-- | src/daemon/ltdl-bind-now.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/daemon/ltdl-bind-now.c b/src/daemon/ltdl-bind-now.c index 40077248..1215d125 100644 --- a/src/daemon/ltdl-bind-now.c +++ b/src/daemon/ltdl-bind-now.c @@ -102,7 +102,9 @@ static lt_module bind_now_open(lt_user_data d, const char *fname, lt_dladvise ad pa_assert(fname); if (!(m = dlopen(fname, PA_BIND_NOW))) { +#ifdef HAVE_LT_DLMUTEX_REGISTER libtool_set_error(dlerror()); +#endif return NULL; } @@ -114,7 +116,9 @@ static int bind_now_close(lt_user_data d, lt_module m) { pa_assert(m); if (dlclose(m) != 0){ +#ifdef HAVE_LT_DLMUTEX_REGISTER libtool_set_error(dlerror()); +#endif 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); if (!(ptr = dlsym(m, symbol))) { +#ifdef HAVE_LT_DLMUTEX_REGISTER libtool_set_error(dlerror()); +#endif return NULL; } |