]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libltdl/ltdl.c (loader_init_callback) [HAVE_LIBDLLOADER]:
authorEric Blake <ebb9@byu.net>
Sat, 22 Jul 2006 20:34:06 +0000 (20:34 +0000)
committerEric Blake <ebb9@byu.net>
Sat, 22 Jul 2006 20:34:06 +0000 (20:34 +0000)
Protect definition to avoid compiler warnings about unused
function.

ChangeLog
libltdl/ltdl.c

index 5ce2d13582ad372f5337690669745cca810a7880..cd2853bf71b01a328be0e19dae9ff042559cc640 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-07-22  Eric Blake  <ebb9@byu.net>
+
+       * libltdl/ltdl.c (loader_init_callback) [HAVE_LIBDLLOADER]:
+       Protect definition to avoid compiler warnings about unused
+       function.
+
 2006-07-21  Eric Blake  <ebb9@byu.net>
 
        * libltdl/m4/ltdl.m4 (LT_LIB_DLLOAD): Search for dlopen without
index a1731cce5bc91e10292644e2bec13c78d8c084a4..15e2c5d63a790cf008d279158906fb005f497df0 100644 (file)
@@ -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)