Magellan Linux

Contents of /trunk/libtunepimp/patches/libtunepimp-0.5.3-build-fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 806 - (show annotations) (download)
Tue May 12 16:44:11 2009 UTC (15 years ago) by niro
File size: 1996 byte(s)
added serveral build fixes

1 diff -Naur libtunepimp-0.5.3/lib/plugins.cpp libtunepimp-0.5.3.new/lib/plugins.cpp
2 --- libtunepimp-0.5.3/lib/plugins.cpp 2006-11-18 11:52:33.000000000 +0100
3 +++ libtunepimp-0.5.3.new/lib/plugins.cpp 2008-06-13 22:10:44.320195645 +0200
4 @@ -33,6 +33,8 @@
5 #include <dirent.h>
6 #include "../libltdl/ltdl.h"
7 #include "plugins.h"
8 +#include <cstdlib>
9 +#include <cstdio>
10
11 #include <map>
12 using namespace std;
13 @@ -103,12 +105,12 @@
14 strcat(init_func, "InitPlugin");
15
16 /* Opened plugin ok, now locate our entry function */
17 - init_function = (Plugin *(*)(void))lt_dlsym((lt_dlhandle_struct *)info.handle, init_func);
18 + init_function = (Plugin *(*)(void))lt_dlsym((lt_dlhandle)info.handle, init_func);
19 if (init_function == NULL)
20 {
21 if (printDebugInfo)
22 fprintf(stderr, "Cannot find entry point in %s (%s).\n", file, lt_dlerror());
23 - lt_dlclose((lt_dlhandle_struct *)info.handle);
24 + lt_dlclose((lt_dlhandle)info.handle);
25 continue;
26 }
27
28 @@ -116,7 +118,7 @@
29 info.methods = (*init_function)();
30 if (info.methods == NULL)
31 {
32 - lt_dlclose((lt_dlhandle_struct *)info.handle);
33 + lt_dlclose((lt_dlhandle)info.handle);
34 if (printDebugInfo)
35 fprintf(stderr, "Cannot retrieve supported methods from %s.\n", file);
36 continue;
37 @@ -150,7 +152,7 @@
38 fprintf(stderr, " [Plugin %s has already been loaded. "
39 "Skipping.]\n", info.file);
40 info.methods->shutdown();
41 - lt_dlclose((lt_dlhandle_struct *)info.handle);
42 + lt_dlclose((lt_dlhandle)info.handle);
43 break;
44 }
45 }
46 @@ -173,7 +175,7 @@
47 if ((*i).handle)
48 {
49 (*i).methods->shutdown();
50 - lt_dlclose((lt_dlhandle_struct *)(*i).handle);
51 + lt_dlclose((lt_dlhandle)(*i).handle);
52 (*i).handle = NULL;
53 }
54 }