summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-07-27 07:49:44 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-07-27 07:49:44 +0000
commit10b93a01f6cbb486785d752eeb5701878bfebee6 (patch)
tree5f945f0dd7d07fb8601fc0bedfaacad415afd85b /media-sound/peercast/files
parentwhitespace (diff)
downloadgentoo-2-10b93a01f6cbb486785d752eeb5701878bfebee6.tar.gz
gentoo-2-10b93a01f6cbb486785d752eeb5701878bfebee6.tar.bz2
gentoo-2-10b93a01f6cbb486785d752eeb5701878bfebee6.zip
Fix building with glibc-2.10+ wrt #275809, thanks to Alexis Ballier.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'media-sound/peercast/files')
-rw-r--r--media-sound/peercast/files/peercast-0.1218-glibc-2.10.patch109
1 files changed, 109 insertions, 0 deletions
diff --git a/media-sound/peercast/files/peercast-0.1218-glibc-2.10.patch b/media-sound/peercast/files/peercast-0.1218-glibc-2.10.patch
new file mode 100644
index 000000000000..3f290578dd50
--- /dev/null
+++ b/media-sound/peercast/files/peercast-0.1218-glibc-2.10.patch
@@ -0,0 +1,109 @@
+Index: work/core/common/common.h
+===================================================================
+--- work.orig/core/common/common.h
++++ work/core/common/common.h
+@@ -274,7 +274,7 @@ inline int strToID(char *str)
+ }
+
+ // -----------------------------------
+-char *getCGIarg(const char *str, const char *arg);
++const char *getCGIarg(const char *str, const char *arg);
+ bool cmpCGIarg(char *str, char *arg, char *value);
+ bool hasCGIarg(char *str, char *arg);
+
+Index: work/core/common/html.cpp
+===================================================================
+--- work.orig/core/common/html.cpp
++++ work/core/common/html.cpp
+@@ -103,7 +103,7 @@ void HTML::writeVariable(Stream &s,const
+ r = true;
+ }else if (varName.startsWith("loop.hit."))
+ {
+- char *idstr = getCGIarg(tmplArgs,"id=");
++ const char *idstr = getCGIarg(tmplArgs,"id=");
+ if (idstr)
+ {
+ GnuID id;
+@@ -136,7 +136,7 @@ void HTML::writeVariable(Stream &s,const
+ {
+ if (varName.startsWith("page.channel."))
+ {
+- char *idstr = getCGIarg(tmplArgs,"id=");
++ const char *idstr = getCGIarg(tmplArgs,"id=");
+ if (idstr)
+ {
+ GnuID id;
+@@ -150,7 +150,7 @@ void HTML::writeVariable(Stream &s,const
+
+ String v = varName+5;
+ v.append('=');
+- char *a = getCGIarg(tmplArgs,v);
++ const char *a = getCGIarg(tmplArgs,v);
+ if (a)
+ {
+ s.writeString(a);
+Index: work/core/common/sys.cpp
+===================================================================
+--- work.orig/core/common/sys.cpp
++++ work/core/common/sys.cpp
+@@ -740,12 +740,12 @@ void LogBuffer::write(const char *str, T
+ }
+
+ // -----------------------------------
+-char *getCGIarg(const char *str, const char *arg)
++const char *getCGIarg(const char *str, const char *arg)
+ {
+ if (!str)
+ return NULL;
+
+- char *s = strstr(str,arg);
++ const char *s = strstr(str,arg);
+
+ if (!s)
+ return NULL;
+Index: work/core/common/servhs.cpp
+===================================================================
+--- work.orig/core/common/servhs.cpp
++++ work/core/common/servhs.cpp
+@@ -150,10 +150,10 @@ void Servent::handshakeHTTP(HTTP &http,
+ if (!isAllowed(ALLOW_BROADCAST))
+ throw HTTPException(HTTP_SC_UNAVAILABLE,503);
+
+- char *pwdArg = getCGIarg(fn,"pass=");
+- char *songArg = getCGIarg(fn,"song=");
+- char *mountArg = getCGIarg(fn,"mount=");
+- char *urlArg = getCGIarg(fn,"url=");
++ const char *pwdArg = getCGIarg(fn,"pass=");
++ const char *songArg = getCGIarg(fn,"song=");
++ const char *mountArg = getCGIarg(fn,"mount=");
++ const char *urlArg = getCGIarg(fn,"url=");
+
+ if (pwdArg && songArg)
+ {
+@@ -560,7 +560,7 @@ bool Servent::handshakeAuth(HTTP &http,c
+ char user[64],pass[64];
+ user[0] = pass[0] = 0;
+
+- char *pwd = getCGIarg(args, "pass=");
++ const char *pwd = getCGIarg(args, "pass=");
+
+ if ((pwd) && strlen(servMgr->password))
+ {
+@@ -671,7 +671,7 @@ void Servent::handshakeCMD(char *cmd)
+ {
+ if (cmpCGIarg(cmd,"cmd=","redirect"))
+ {
+- char *j = getCGIarg(cmd,"url=");
++ const char *j = getCGIarg(cmd,"url=");
+ if (j)
+ {
+ termArgs(cmd);
+@@ -1079,7 +1079,7 @@ void Servent::handshakeCMD(char *cmd)
+ index++;
+ }
+
+- char *findArg = getCGIarg(cmd,"keywords=");
++ const char *findArg = getCGIarg(cmd,"keywords=");
+
+ if (hasCGIarg(cmd,"relay"))
+ {