diff options
author | 2009-08-09 20:15:39 +0000 | |
---|---|---|
committer | 2009-08-09 20:15:39 +0000 | |
commit | 16526e4e9ddcc998e36db6044918b8db488fae0b (patch) | |
tree | 06874070fef75ae14b3cad499a232ea1f58fac65 /media-plugins/vdr-softplay/files | |
parent | Version bump. (diff) | |
download | gentoo-2-16526e4e9ddcc998e36db6044918b8db488fae0b.tar.gz gentoo-2-16526e4e9ddcc998e36db6044918b8db488fae0b.tar.bz2 gentoo-2-16526e4e9ddcc998e36db6044918b8db488fae0b.zip |
Fix building with GLIBC 2.10+ wrt #274079.
(Portage version: 2.2_rc36/cvs/Linux x86_64)
Diffstat (limited to 'media-plugins/vdr-softplay/files')
-rw-r--r-- | media-plugins/vdr-softplay/files/vdr-softplay-0.0.2.20080421-glibc-2.10.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/media-plugins/vdr-softplay/files/vdr-softplay-0.0.2.20080421-glibc-2.10.patch b/media-plugins/vdr-softplay/files/vdr-softplay-0.0.2.20080421-glibc-2.10.patch new file mode 100644 index 000000000000..57f3b7f4edf9 --- /dev/null +++ b/media-plugins/vdr-softplay/files/vdr-softplay-0.0.2.20080421-glibc-2.10.patch @@ -0,0 +1,58 @@ +diff -ur softplay-cvs-20080421.orig/PlayList.c softplay-cvs-20080421/PlayList.c +--- softplay-cvs-20080421.orig/PlayList.c 2008-04-21 12:57:46.000000000 +0300 ++++ softplay-cvs-20080421/PlayList.c 2009-08-09 23:14:13.000000000 +0300 +@@ -625,7 +625,7 @@ + }; + + SetFilename(Filename); +- char *ncopy=rindex(Filename,'/'); ++ char *ncopy=const_cast<char*> (rindex(Filename,'/')); + int count=(int) (ncopy-Filename); + if ( ncopy && count > STR_LENGTH) { + fprintf(stderr,"Could not extract directory!\n"); +diff -ur softplay-cvs-20080421.orig/softplay.c softplay-cvs-20080421/softplay.c +--- softplay-cvs-20080421.orig/softplay.c 2008-04-21 12:57:46.000000000 +0300 ++++ softplay-cvs-20080421/softplay.c 2009-08-09 23:17:13.000000000 +0300 +@@ -49,7 +49,7 @@ + sizeof(myDir): (unsigned int)(ToPos-path+1)); + printf("MyDir '%s'\n",myDir); + PrepareDirectory(myDir); +- myToPos=index(ToPos+1,'/'); ++ myToPos=const_cast<char*> (index(ToPos+1,'/')); + AddSubMenu(new cMenuDirectory(path,EditList,myToPos)); + } else { + printf("Open only directory '%s'.\n",path); +@@ -592,7 +592,7 @@ + + bool IsM3UFile( const char * const Filename) { + char * pos; +- pos = rindex(Filename,'.'); ++ pos = const_cast<char*> (rindex(Filename,'.')); + if ( !pos ) + return false; + if ( !strcmp(pos,".m3u") ) { +@@ -614,10 +614,10 @@ + + void chomp(const char *const str) { + char *pos; +- pos = index(str,'\n'); ++ pos = const_cast<char*> (index(str,'\n')); + if (pos) + *pos=0; +- pos = index(str,'\r'); ++ pos = const_cast<char*> (index(str,'\r')); + if (pos) + *pos=0; + }; +diff -ur softplay-cvs-20080421.orig/SoftPlayer.c softplay-cvs-20080421/SoftPlayer.c +--- softplay-cvs-20080421.orig/SoftPlayer.c 2008-04-21 12:57:46.000000000 +0300 ++++ softplay-cvs-20080421/SoftPlayer.c 2009-08-09 23:14:57.000000000 +0300 +@@ -409,7 +409,7 @@ + }; + + bool IsStreamFile( const char * const Filename) { +- char * pos; ++ const char * pos; + pos = rindex(Filename,'.'); + printf("IsStream %s\n",pos); + if ( !pos ) |