summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2009-08-09 15:14:51 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2009-08-09 15:14:51 +0000
commitcac6d85f4cbe343c0852e5d69d5e7500c55e9433 (patch)
tree4607c1e540a52c27f90dbc7e2a3097766c1c49d4 /app-shells/localshell/files
parentFix building with GLIBC 2.10+ wrt #270845. (diff)
downloadhistorical-cac6d85f4cbe343c0852e5d69d5e7500c55e9433.tar.gz
historical-cac6d85f4cbe343c0852e5d69d5e7500c55e9433.tar.bz2
historical-cac6d85f4cbe343c0852e5d69d5e7500c55e9433.zip
Fix building with GLIBC 2.10+ wrt #277174.
Package-Manager: portage-2.2_rc36/cvs/Linux x86_64
Diffstat (limited to 'app-shells/localshell/files')
-rw-r--r--app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch b/app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch
new file mode 100644
index 000000000000..7bdd8f9a8d1f
--- /dev/null
+++ b/app-shells/localshell/files/localshell-1.3.1-glibc-2.10.patch
@@ -0,0 +1,12 @@
+diff -ur localshell-1.3.1.orig/src/config.cxx localshell-1.3.1/src/config.cxx
+--- localshell-1.3.1.orig/src/config.cxx 2009-01-09 03:40:11.000000000 +0200
++++ localshell-1.3.1/src/config.cxx 2009-08-09 18:15:17.000000000 +0300
+@@ -121,7 +121,7 @@
+ // PRIORITY,SHELL,ALLOWED
+ long priority = atol(argvalue);
+
+- char* shell = strstr(argvalue,",");
++ char* shell = const_cast<char*> (strstr(argvalue,","));
+ if(NULL == shell || '\0' == shell[1] ) {
+ fprintf(stderr,"%s: badly formatted entry (shell):%s\n",PACKAGE,argvalue);
+ return EINVAL;