File libtunepimp-ltdl.patch of Package libtunepimp

--- lib/plugins.cpp
+++ lib/plugins.cpp
@@ -103,12 +103,12 @@ int Plugins::load(const char *path, bool
        strcat(init_func, "InitPlugin");
 
        /* Opened plugin ok, now locate our entry function */
-       init_function = (Plugin *(*)(void))lt_dlsym((lt_dlhandle_struct *)info.handle, init_func);
+       init_function = (Plugin *(*)(void))lt_dlsym((lt_dlhandle)info.handle, init_func);
        if (init_function == NULL)
        {
            if (printDebugInfo)
                fprintf(stderr, "Cannot find entry point in %s (%s).\n", file, lt_dlerror());
-           lt_dlclose((lt_dlhandle_struct *)info.handle);
+           lt_dlclose((lt_dlhandle)info.handle);
            continue;
        }
 
@@ -116,7 +116,7 @@ int Plugins::load(const char *path, bool
        info.methods = (*init_function)();
        if (info.methods == NULL)
        {
-           lt_dlclose((lt_dlhandle_struct *)info.handle);
+           lt_dlclose((lt_dlhandle)info.handle);
            if (printDebugInfo)
                fprintf(stderr, "Cannot retrieve supported methods from %s.\n", file);
            continue;
@@ -150,7 +150,7 @@ int Plugins::load(const char *path, bool
                   fprintf(stderr, "  [Plugin %s has already been loaded. "
                        "Skipping.]\n", info.file);
                info.methods->shutdown();
-               lt_dlclose((lt_dlhandle_struct *)info.handle);
+               lt_dlclose((lt_dlhandle)info.handle);
                break;
            }
        }
@@ -173,7 +173,7 @@ void Plugins::unload(void)
        if ((*i).handle)
        {
            (*i).methods->shutdown();
-           lt_dlclose((lt_dlhandle_struct *)(*i).handle);
+           lt_dlclose((lt_dlhandle)(*i).handle);
            (*i).handle = NULL;
        }
    }