From: Eric Blake Date: Sat, 22 Jul 2006 20:34:06 +0000 (+0000) Subject: * libltdl/ltdl.c (loader_init_callback) [HAVE_LIBDLLOADER]: X-Git-Tag: release-2-1b~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4704053cacc0cd2cffcf3353ede0b4125273b66f;p=thirdparty%2Flibtool.git * libltdl/ltdl.c (loader_init_callback) [HAVE_LIBDLLOADER]: Protect definition to avoid compiler warnings about unused function. --- diff --git a/ChangeLog b/ChangeLog index 5ce2d1358..cd2853bf7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-07-22 Eric Blake + + * libltdl/ltdl.c (loader_init_callback) [HAVE_LIBDLLOADER]: + Protect definition to avoid compiler warnings about unused + function. + 2006-07-21 Eric Blake * libltdl/m4/ltdl.m4 (LT_LIB_DLLOAD): Search for dlopen without diff --git a/libltdl/ltdl.c b/libltdl/ltdl.c index a1731cce5..15e2c5d63 100644 --- a/libltdl/ltdl.c +++ b/libltdl/ltdl.c @@ -130,12 +130,15 @@ static int list_files_by_dir (const char *dirnam, char **pargz, size_t *pargz_len); static int file_not_found (void); +#ifdef HAVE_LIBDLLOADER static int loader_init_callback (lt_dlhandle handle); +#endif /* HAVE_LIBDLLOADER */ + static int loader_init (lt_get_vtable *vtable_func, lt_user_data data); static char *user_search_path= 0; -static lt_dlhandle handles = 0; +static lt_dlhandle handles = 0; static int initialized = 0; /* Our memory failure callback sets the error message to be passed back @@ -147,6 +150,7 @@ lt__alloc_die_callback (void) LT__SETERROR (NO_MEMORY); } +#ifdef HAVE_LIBDLLOADER /* This function is called to initialise each preloaded module loader, and hook it into the list of loaders to be used when attempting to dlopen an application module. */ @@ -155,6 +159,7 @@ loader_init_callback (lt_dlhandle handle) { return loader_init (lt_dlsym (handle, "get_vtable"), 0); } +#endif /* HAVE_LIBDLLOADER */ static int loader_init (lt_get_vtable *vtable_func, lt_user_data data)