summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-08-09 19:07:31 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-08-09 19:07:31 +0000
commit49887dc34c70c5c049ede60e3652c442afc05abc (patch)
treefc8b253798e97a26375ad4f320deaff22381b03b /media-plugins/vdr-undelete/files
parentStable for HPPA (bug #279379). (diff)
downloadgentoo-2-49887dc34c70c5c049ede60e3652c442afc05abc.tar.gz
gentoo-2-49887dc34c70c5c049ede60e3652c442afc05abc.tar.bz2
gentoo-2-49887dc34c70c5c049ede60e3652c442afc05abc.zip
Fix building with GLIBC 2.10+ wrt #277253.
(Portage version: 2.2_rc36/cvs/Linux x86_64)
Diffstat (limited to 'media-plugins/vdr-undelete/files')
-rw-r--r--media-plugins/vdr-undelete/files/vdr-undelete-0.0.6-glibc-2.10.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6-glibc-2.10.patch b/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6-glibc-2.10.patch
new file mode 100644
index 000000000000..5a87bd23f009
--- /dev/null
+++ b/media-plugins/vdr-undelete/files/vdr-undelete-0.0.6-glibc-2.10.patch
@@ -0,0 +1,12 @@
+diff -ur undelete-0.0.6.orig/undelete.c undelete-0.0.6/undelete.c
+--- undelete-0.0.6.orig/undelete.c 2006-03-15 23:12:06.000000000 +0200
++++ undelete-0.0.6/undelete.c 2009-08-09 22:08:26.000000000 +0300
+@@ -934,7 +934,7 @@
+ if (verbose.u)
+ isyslog("%s: undelete recording (%s)", plugin_name, recording->FileName());
+ cString NewName = recording->FileName();
+- char *ext = strrchr(NewName, '.');
++ char *ext = const_cast<char*> (strrchr(NewName, '.'));
+ if (!strcmp(ext, DELEXT))
+ {
+ strncpy(ext, RECEXT, strlen(ext));