[-]
[+]
|
Changed |
libtunepimp.spec
|
|
[-]
[+]
|
Added |
libtunepimp-fixes.patch
^
|
@@ -0,0 +1,121 @@
+--- libtunepimp-0.5.3/lib/utf8/utf8util.cpp.xx 2007-10-24 10:32:24.000000000 +0200
++++ libtunepimp-0.5.3/lib/utf8/utf8util.cpp 2007-10-24 10:32:34.000000000 +0200
+@@ -26,6 +26,7 @@
+ ----------------------------------------------------------------------------*/
+
+ #include <stdio.h>
++#include <cstdlib>
+ #include "utf8util.h"
+ #include "utf8.h"
+ #ifdef WIN32
+--- libtunepimp-0.5.3/include/tunepimp-0.5/metadata.h.xx 2007-10-24 10:59:51.000000000 +0200
++++ libtunepimp-0.5.3/include/tunepimp-0.5/metadata.h 2007-10-24 11:01:16.000000000 +0200
+@@ -28,6 +28,7 @@
+ #define __METADATA_H__
+
+ #include <string>
++#include <cstring>
+ #include <cstdio>
+
+ #include "defs.h"
+--- libtunepimp-0.5.3/lib/metadata.cpp.xx 2007-10-24 11:01:59.000000000 +0200
++++ libtunepimp-0.5.3/lib/metadata.cpp 2007-10-24 11:02:29.000000000 +0200
+@@ -25,6 +25,7 @@
+
+ ----------------------------------------------------------------------------*/
+ #include <math.h>
++#include <cstdlib>
+ #include <stdio.h>
+ #include "metadata.h"
+ #include "../config.h"
+--- libtunepimp-0.5.3/lib/protocol.cpp.xx 2007-10-24 11:03:57.000000000 +0200
++++ libtunepimp-0.5.3/lib/protocol.cpp 2007-10-24 11:04:02.000000000 +0200
+@@ -9,6 +9,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string>
++#include <cstring>
+ #include <map>
+ #include <expat.h>
+ #include <curl/curl.h>
+--- libtunepimp-0.5.3/lib/tunepimp.cpp.xx 2007-10-24 11:00:22.000000000 +0200
++++ libtunepimp-0.5.3/lib/tunepimp.cpp 2007-10-24 11:00:31.000000000 +0200
+@@ -32,6 +32,7 @@
+
+ #include <stdio.h>
+ #include <map>
++#include <cstdlib>
+ using namespace std;
+
+ #ifdef WIN32
+--- libtunepimp-0.5.3/lib/c_wrapper.cpp.xx 2007-10-24 11:02:52.000000000 +0200
++++ libtunepimp-0.5.3/lib/c_wrapper.cpp 2007-10-24 11:03:02.000000000 +0200
+@@ -28,6 +28,7 @@
+ #include "mutex.h"
+ #include "tp_c.h"
+ #include "astrcmp.h"
++#include <cstdlib>
+
+ #define DB printf("%s:%d\n", __FILE__, __LINE__);
+
+--- libtunepimp-0.5.3/lib/readmeta.cpp.xx 2007-10-24 11:03:19.000000000 +0200
++++ libtunepimp-0.5.3/lib/readmeta.cpp 2007-10-24 11:03:27.000000000 +0200
+@@ -31,6 +31,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <cstdlib>
+ #ifndef WIN32
+ #include <unistd.h>
+ #endif
+--- libtunepimp-0.5.3/lib/fileio.cpp.xx 2007-10-24 11:03:40.000000000 +0200
++++ libtunepimp-0.5.3/lib/fileio.cpp 2007-10-24 11:03:47.000000000 +0200
+@@ -28,6 +28,8 @@
+ #include <assert.h>
+ #include <errno.h>
+ #include <string>
++#include <cstring>
++#include <cstdlib>
+ #ifndef WIN32
+ #include <unistd.h>
+ #endif
+--- libtunepimp-0.5.3/plugins/wma/wmafile.cpp.xx 2007-10-24 11:04:53.000000000 +0200
++++ libtunepimp-0.5.3/plugins/wma/wmafile.cpp 2007-10-24 11:05:00.000000000 +0200
+@@ -20,6 +20,7 @@
+ ***************************************************************************/
+
+ #include <tstring.h>
++#include <cstring>
+ #include <wmafile.h>
+ #include <wmatag.h>
+ #include <wmaproperties.h>
+--- libtunepimp-0.5.3/plugins/wma/wma.cpp.xx 2007-10-24 11:04:32.000000000 +0200
++++ libtunepimp-0.5.3/plugins/wma/wma.cpp 2007-10-24 11:04:40.000000000 +0200
+@@ -27,6 +27,7 @@
+
+ #include <string.h>
+ #include <stdio.h>
++#include <cstdlib>
+ #include <wmafile.h>
+ #include "metadata.h"
+ #include "plugin.h"
+--- libtunepimp-0.5.3/plugins/mp3/id3_2_3_meta.cpp.orig 2008-04-27 00:57:25.000000000 +0200
++++ libtunepimp-0.5.3/plugins/mp3/id3_2_3_meta.cpp 2008-04-27 00:57:55.000000000 +0200
+@@ -28,6 +28,7 @@
+ #include <stdio.h>
+ #include <assert.h>
+ #include <ctype.h>
++#include <cstdlib>
+ #include <musicbrainz/mb_c.h>
+ #include "mp3.h"
+ #include "id3_2_3_meta.h"
+--- libtunepimp-0.5.3/plugins/mp3/id3_meta.cpp.orig 2008-04-27 10:01:09.000000000 +0200
++++ libtunepimp-0.5.3/plugins/mp3/id3_meta.cpp 2008-04-27 10:01:22.000000000 +0200
+@@ -28,6 +28,7 @@
+ #include <stdio.h>
+ #include <time.h>
+ #include <ctype.h>
++#include <cstdlib>
+ #include <musicbrainz/mb_c.h>
+ #include "mp3.h"
+ #include "id3_meta.h"
|
[-]
[+]
|
Added |
libtunepimp-ltdl.patch
^
|
@@ -0,0 +1,44 @@
+--- 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;
+ }
+ }
|
|
Added |
libtunepimp5-0.5.3-100.pm.9.src.rpm
^
|