This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
alsaplayer/alsaplayer-0.99.80-glibc-2.10.patch

33 lines
1.0 KiB
Diff
Raw Permalink Normal View History

diff -ur alsaplayer-0.99.80.orig/input/flac/FlacPlugin.cpp alsaplayer-0.99.80/input/flac/FlacPlugin.cpp
--- alsaplayer-0.99.80.orig/input/flac/FlacPlugin.cpp 2007-10-29 23:00:16.000000000 +0200
+++ alsaplayer-0.99.80/input/flac/FlacPlugin.cpp 2009-07-20 00:19:07.000000000 +0300
@@ -239,7 +239,7 @@
else
{
// use stream name
- char * fname = strrchr (f->name ().c_str (), '/');
+ const char * fname = strrchr (f->name ().c_str (), '/');
if (fname)
{
fname++;
@@ -270,7 +270,7 @@
if (strncmp(name, "http://", 7) == 0) {
return 0.0;
}
- char *ext = strrchr(name, '.');
+ const char *ext = strrchr(name, '.');
if (!ext)
return 0.0;
ext++;
diff -Nru alsaplayer-0.99.80.ori//app/ControlSocket.cpp alsaplayer-0.99.80/app/ControlSocket.cpp
--- alsaplayer-0.99.80.ori//app/ControlSocket.cpp 2007-07-08 16:27:31.000000000 +0200
+++ alsaplayer-0.99.80/app/ControlSocket.cpp 2010-05-03 23:53:09.208841569 +0200
@@ -18,6 +18,7 @@
*
*/
#include "AlsaPlayer.h"
+#include <climits>
#include <cstdio>
#include <cstdlib>
#include <unistd.h>